J
Jaez
I am new to asp.net 2 and am struggling with emailing to a list of
addresses
I can send emails OK using:
Dim MailObj As New System.Net.Mail.SmtpClient
MailObj.Send(EmFrom.Text, EmTo.Text, EmSubj.Text, EmMsg.Text)
but I seem to be unable to detect if an email fails to send ie if the
address has a typo or the address is not able to receive an email
in php I might write something like:
if (mail($to, $subject, $body)) { echo("<p>Message successfully
sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); }
so is thier an equivalent structure in asp.net 2
Thanks
jaez
addresses
I can send emails OK using:
Dim MailObj As New System.Net.Mail.SmtpClient
MailObj.Send(EmFrom.Text, EmTo.Text, EmSubj.Text, EmMsg.Text)
but I seem to be unable to detect if an email fails to send ie if the
address has a typo or the address is not able to receive an email
in php I might write something like:
if (mail($to, $subject, $body)) { echo("<p>Message successfully
sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); }
so is thier an equivalent structure in asp.net 2
Thanks
jaez