Thank you for your reply...
We understand that its just a delivery status and that they may only receive
a Success/Failure notification if anything at all. Our Sales people still
think the internet is FM and they just need a but more info to keep them in
check. (-;
I've confirmed this with MSS and they now have a Fix for it. They said its
in the Next Major Release, though I can call Support (on hold now) and get
it.
As for your code. If you take out your foreach loop and just do the:
smtpMail.Send(msgMail); twice or do:
smtpMail = new SmtpServer("localhost");
smtpMail2 = new SmtpServer("localhost");
smtpMail.Send(msgMail);
smtpMail2.Send(msgMail);
or
MailMessage msgMail = new MailMessage(maFrom, maTo)
MailMessage msgMail2= new MailMessage(maFrom, maTo)
msgMail.Subject = "<Subject Text Here>";
msgMail2Subject = "<Subject Text Here>";
msgMail.Body = "<Body Text Here>";
msgMail2Body = "<Body Text Here>";
msgMail.DeliveryNotificationOptions =
DeliveryNotificationOptions.OnSuccess;
msgMail2DeliveryNotificationOptions =
DeliveryNotificationOptions.OnSuccess;
smtpMail = new SmtpServer("localhost");
smtpMail.Send(msgMail);
smtpMail.Send(msgMail2;
or
MailMessage msgMail = new MailMessage(maFrom, maTo)
MailMessage msgMail2= new MailMessage(maFrom, maTo)
msgMail.Subject = "<Subject Text Here>";
msgMail2Subject = "<Subject Text Here>";
msgMail.Body = "<Body Text Here>";
msgMail2Body = "<Body Text Here>";
msgMail.DeliveryNotificationOptions =
DeliveryNotificationOptions.OnSuccess;
msgMail2DeliveryNotificationOptions =
DeliveryNotificationOptions.OnSuccess;
smtpMail = new SmtpServer("localhost");
smtpMail2 = new SmtpServer("localhost");
smtpMail.Send(msgMail);
smtpMail2.Send(msgMail);
You still just get the delivery receipt for the first connection to
"localhost"
Even though smtpMail goes out of scope, I set it to nothing, I force a
Garbage collection before and after the creation/send the connection to
"localhost" stays active after all of that. If I make any other attempts to
send amil after the initial connection no other delivery receipts are
generated. If after the first email is sent, and you wait several minute for
the SMTP connection to the server to drop, then you can send another message
and get the Delivery Status.
If you set the SmtpServer("<>") to different servers, you get one status per
server per connection.
I could send you my VB.Net app if you would like?
Thank you again for your reply...
Scott<-