Does anyone have any advice on how to get messages that have been created using the .NET 2.0 Mail components delivered to external email addresses?
I have checked out the WebWiz 'Sending Mail Using Scripts and Web Forms' tech note, but am still not having any joy.
I have set up SMTP authentication using my admin POP3 email address and password, and also checked my app is correctly using these credentials.
My application seems to working fine, and will happily deliver mail to an address that exists on the hosted domain, but bounces all others with the following exception.
Mailbox unavailable. The server response was: <admin@xxxxxx.co.uk> No such user here
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.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: <admin@west-mersea.co.uk> No such user here
Source Error:
|
Line 78: smtp.UseDefaultCredentials = False
Line 79: smtp.Credentials = a
Line 80: smtp.Send(msgMail)
Line 81: Response.Redirect("~/default.aspx")
Line 82: End Sub |
Source File: C:\domains\mialga.org\wwwroot\admin\Email.aspx.vb Line: 80
Stack Trace:
|
[SmtpFailedRecipientException: Mailbox unavailable. The server response was: <admin@west-mersea.co.uk> No such user here]
[SmtpFailedRecipientsException: Unable to send to a recipient.]
System.Net.Mail.SmtpClient.Send(MailMessage message) +1877
Admin_Email.btnSend_Click(Object sender, EventArgs e) in C:\domains\mialga.org\wwwroot\admin\Email.aspx.vb:80
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746 |
Regards
Edited by WebWiz-Bruce - 20 March 2008 at 11:46am