G
Guest
Hi folks,
I am using the Send method in the System.Web.Mail.SmtpMail class.
If I pass an address that does not exist or is in anyway invalid, I throw and
exception as shown below. I need to determine how I can check to see
if the email address is invalid before I call the Send method which does not
return a value. - thanks, - Glenn
Server Error in '/' Application.
--------------------------------------------------------------------------------
The server rejected one or more recipient addresses. The server response
was: 550 5.1.1 <[email protected]> User unknown; rejecting
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The server
rejected one or more recipient addresses. The server response was: 550 5.1.1
<[email protected]> User unknown; rejecting
Source Error:
Line 185:
Line 186: System.Web.Mail.SmtpMail.SmtpServer = "mail.yazo.com"
Line 187: System.Web.Mail.SmtpMail.Send(mailMessage)
Line 188: End Sub
Line 189:
I am using the Send method in the System.Web.Mail.SmtpMail class.
If I pass an address that does not exist or is in anyway invalid, I throw and
exception as shown below. I need to determine how I can check to see
if the email address is invalid before I call the Send method which does not
return a value. - thanks, - Glenn
Server Error in '/' Application.
--------------------------------------------------------------------------------
The server rejected one or more recipient addresses. The server response
was: 550 5.1.1 <[email protected]> User unknown; rejecting
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The server
rejected one or more recipient addresses. The server response was: 550 5.1.1
<[email protected]> User unknown; rejecting
Source Error:
Line 185:
Line 186: System.Web.Mail.SmtpMail.SmtpServer = "mail.yazo.com"
Line 187: System.Web.Mail.SmtpMail.Send(mailMessage)
Line 188: End Sub
Line 189: