Web Wiz
Home
Home
Hosting Services
Hosting Services
Knowledgebase
Knowledgebase
Community
Community
Customer Login
Customer Login

Web Wiz Forums Homepage

  New Posts New Posts RSS Feed - SMTP Email To External Users
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

SMTP Email To External Users

 Post Reply Post Reply
Author
grahamo View Drop Down
Newbie
Newbie
Avatar

Joined: 03 March 2008
Location: West Mersea
Status: Offline
Posts: 5
Points: 8
Post Options Post Options   Quote grahamo Quote  Post ReplyReply Direct Link To This Post Topic: SMTP Email To External Users
    Posted: 20 March 2008 at 11:33am

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
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole, England
Status: Offline
Posts: 23183
Points: 6383
Post Options Post Options   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
grahamo View Drop Down
Newbie
Newbie
Avatar

Joined: 03 March 2008
Location: West Mersea
Status: Offline
Posts: 5
Points: 8
Post Options Post Options   Quote grahamo Quote  Post ReplyReply Direct Link To This Post 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 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 Big%20smile
 
Thanks again for your support and help during our migration to your services.
 
Regards
 
Graham
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down


© Copyright 2001-2010 Web Wiz®. All rights reserved.
All prices are shown excluding VAT, which is charged where applicable. $, € prices shown as a guideline only.