Free Support Forum - aspose.com

ERROR - Expecting: 220. Recieved

After sending about 100 emails, I get the following:

{"ERROR - Expecting: 220. Recieved: " }
[Aspose.Email.SmtpException]: {Aspose.Email.SmtpException}
System.Object: {Aspose.Email.SmtpException}
_className: “Aspose.Email.SmtpException”
_COMPlusExceptionCode: -532459699
_exceptionMethod:
_exceptionMethodString: null
_helpURL: null
_HResult: -2146232832
_innerException: { }
_message: "ERROR - Expecting: 220. Recieved: "
_remoteStackIndex: 0
_remoteStackTraceString: null
_source: null
_stackTrace: {System.Array}
_stackTraceString: null
_xcode: -532459699
_xptrs: 0
HelpLink: null
HResult: -2146232832
InnerException: { }
Message: "ERROR - Expecting: 220. Recieved: "
Source: "Aspose.Email"
StackTrace: " at Aspose.Email.ProgressMonitor.OnExceptionThrown(Exception e)\r\n at Aspose.Email.Message.Send(ISender sender, ProgressMonitor pm)\r\n at Com.SagerSystems.EmailComponent.SendEmail.SendMailOut(EmailParm emailParm, SmtpAccount smtp) in c:\emailcomponent\sendemail.cs:line 92"
TargetSite: {System.Reflection.RuntimeMethodInfo}

Any thoughts? Again I am able to send about 100 then it crashes

CODE SNIPPET
=======================================
while(dr.read)
try
{
nRetryCount ++;
msg = new Aspose.Email.Message();
pm = new Aspose.Email.ProgressMonitor();
pm.Log.SetLevel(Aspose.Email.LogMessageLevel.Normal);
smtp = new Aspose.Email.SmtpAccount
(serverName,serverPort,UserName,passwordName);
msg.RemoveEmbeddedObjects(msg.GetEmbeddedObjects());
msg.From = new Aspose.Email.Address(emailParm.fromEmail);
msg.AddAddress(new Aspose.Email.Address

Aspose.Email.TextPlainBody textBody = new Aspose.Email.TextPlainBody();
textBody.Charset = msg.Charset;
textBody.Content = emailParm.bodyEmail;
Aspose.Email.MessageBody body = textBody;
msg.Body = body;
msg.Subject = emailParm.subject;
smtp.ConnectionAttempts = MAXRETRYS;
msg.Send(smtp,pm);
}
}