Mailbox unavailable. The server response was: No such us
Does anyone have any advice on how to get emails relayed from the Webhosting UK Mail Server?
I have setup an ASP.net 3.5 website which is hosted on Webhosting UK. In development I have used ASP controls (<asp: PasswordRecovery>) to allow users to be sent a new password via email.
The solution works perfectly on my development server, but I'm having problems once it's deployed to Web Hosting UK.
I have created an email account on my domain using DotNetPanel which i can see sends and receives emails OK.
When my site tries to send an email TO the user registered on my domain everything works OK.
However, when the website tries to send email TO an external email address, i get the following error:
"Mailbox unavailable. The server response was: <simon.bowes@btinternet.com> 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: <simon.bowes@btinternet.com> No such user here"
Investigating this issue suggests that the mail server is restricted to prevent spamming, by disabling relaying of emails. I therefore assume that there must be a setting in my ASP code which can reassure the mail server that my email is genuine. Or is there something else I have got wrong?
Here is the code in my website Web.config file for mail setting:
<system.net>
<mailSettings>
<smtp>
<network host="mail.survey.juliabowes.com" port="25" userName="admin@survey.juliabowes.com" password="******" />
</smtp>
</mailSettings>
</system.net>
Has anyone any advice on how to get round this problem?
Last edited by Tasmin96; 01-09-10 at 01:02 PM.
|