
org.subethamail.smtp.command.QuitCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of subethasmtp-smtp Show documentation
Show all versions of subethasmtp-smtp Show documentation
A multithreaded standalone SMTP mail server implementation.
The newest version!
package org.subethamail.smtp.command;
import java.io.IOException;
import org.subethamail.smtp.server.BaseCommand;
import org.subethamail.smtp.server.ConnectionContext;
/**
* @author Ian McFarland <[email protected]>
* @author Jon Stevens
*/
public class QuitCommand extends BaseCommand
{
public QuitCommand()
{
super("QUIT", "Exit the SMTP session.");
}
@Override
public void execute(String commandString, ConnectionContext context) throws IOException
{
context.sendResponse("221 Bye");
context.getSession().quit();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy