|
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 includ
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 20 March 2008 at 11:44am
The problem is that the amin@ email address that you are trying to use doesn't exist on our systems.
You need to log into your Helm Control Panel and create an admin@ email address for your west-mersea.co.uk domain.
If you wish to relay emails to external email addresses you will also need to use authentication and supply the username and password of the locally created 'form' mailbox.
I have checked your account and there is no admin@ mailbox created for your domain, which is why the mail server is returning a '550 no such user' error message, because this mailbox has not been created on our systems.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: grahamo
Date Posted: 20 March 2008 at 12:15pm
|
Bruce,
Thanks for the swift reply.
OK, because I am in the process of transitioning my domains to your service, and have set up mailto:admin@west-mersea.co.uk - west-mersea.co.uk domain, but have not yet changed the DNS records to reflect this, the app is expecting an account at WebWiz rather than Fasthosts which did not exist.
I have now created the mailbox, and sent through some test emails, and the app is now completing the transaction.
Just got all the external emails, and all is now working like a dream 
Thanks again for your support and help during our migration to your services.
Regards
Graham
|
|