Messages to hotmail not working

For some reason any emails send to Hotmail.com do not show in the hotmail acount inbox. There are no exeptions now bounce emails, and the system works fine with both Yahoo and Gmail.

The code is quite simple

private void DispatchMessage()

{

SmtpClientBulkSendAgent agent = null;

try

{

agent = new SmtpClientBulkSendAgent(AsposeSingleton.instance.Client);

agent.AddMessages(mMessages);

[//agent.MessageSent](https://agent.messagesent/) += Agent_MessageSent;

[//agent.MessageSending](https://agent.messagesending/) += Agent_MessageSending;

[//agent.LastMessageSending](https://agent.lastmessagesending/) += Agent_LastMessageSending;

agent.Start();

agent.WaitForIdle(); // this will stop the thread which synchronizes it… not necessarly a good idea… left here to count messages, etc.

System.Diagnostics.Debug.WriteLine("SmtpClientBulkSendAgent.TotalFailed= " + agent.TotalFailed);

System.Diagnostics.Debug.WriteLine("SmtpClientBulkSendAgent.TotalProcessed= " + agent.TotalProcessed);

System.Diagnostics.Debug.WriteLine("SmtpClientBulkSendAgent.TotalQueued= " + agent.TotalQueued);

System.Diagnostics.Debug.WriteLine("SmtpClientBulkSendAgent.TotalSent= " + agent.TotalSent);

}

catch (MailException mex)

{

// TODO

System.Diagnostics.Debug.WriteLine(mex.ToString());

}

catch (Exception e)

{

//TODO

System.Diagnostics.Debug.WriteLine(e.ToString());

}

finally

{

agent.Dispose();

}

}

The debug window shows

SmtpClientBulkSendAgent.TotalFailed= 0

SmtpClientBulkSendAgent.TotalProcessed= 1

SmtpClientBulkSendAgent.TotalQueued= 0

SmtpClientBulkSendAgent.TotalSent= 1

THe issue here is that I am not getting any excepctions or bounced emails… the emal simply does not show on the inbox and we’ve tried with several emails including (luisg_gonzalez@hotmail.com)

Any ideas or sugstions?

Hi Dave,


Thank you for posting your inquiry.

I would like to share with you that SmtpClientBulkSendAgent is marked as deprecated and BeginSend should be used instead of this as we have suggested you earlier. We have tried sending out emails using this new method and emails are received fine at the Hotmail end. Please try it at your end and let us know your feedback.