Busy creating a bulk mail system. need to understand how to send mail using MailSystem.Net ActiveUp.Net.Mail.SmtpClient class.
I want to know that the message was delivered when the send process completes, or if it is bouncing back.
How do I achieve that?
I've got this far, but not sure how to use the AsyncCallback in code?
[WebMethod]
public void PostMail(string address, string addressName, string fromAddress, string fromName)
{
Message message = new Message();
message.Subject = "Test";
message.From = new Address(fromAddress, fromName);
message.To.Add(address, address);
message.BodyText.Text = "Hello this is a test!";
SmtpClient smtp = new SmtpClient();
IAsyncResult result = ActiveUp.Net.Mail.SmtpClient.BeginSend(message, "", 110, AsyncCallback);
}
Would the AsyncCallback get a response to say that the mail bounced if it did?