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 Show documentation
Show all versions of subethasmtp Show documentation
SubEtha SMTP is an easy-to-use server-side SMTP library for Java.
package org.subethamail.smtp.command;
import java.io.IOException;
import org.subethamail.smtp.server.BaseCommand;
import org.subethamail.smtp.server.Session;
/**
* @author Ian McFarland <[email protected]>
* @author Jon Stevens
* @author Jeff Schnitzer
*/
public class QuitCommand extends BaseCommand
{
/** */
public QuitCommand()
{
super("QUIT", "Exit the SMTP session.");
}
/** */
@Override
public void execute(String commandString, Session sess) throws IOException
{
sess.sendResponse("221 Bye");
sess.quit();
}
}