When disconnecting from an SMTP server, send a quit command to be a

better internet citizen. Fixes Issue 1044.
This commit is contained in:
Jesse Vincent 2010-01-19 02:20:24 +00:00
parent a145d3c616
commit 2c406a58b0
1 changed files with 8 additions and 0 deletions

View File

@ -330,6 +330,14 @@ public class SmtpTransport extends Transport
public void close()
{
try
{
executeSimpleCommand("QUIT");
}
catch (Exception e)
{
}
try
{
mIn.close();