Last post Feb 14, 2009 03:22 AM by morrisandy
Feb 13, 2009 06:34 PM|morrisandy|LINK
Ok new day new problem.
I have been following along with Chris Pels video tutorial
How Do I: Send Email Asynchronously with ASP.NET.
But when I have gone to test it nothing happens. I mean I can type into the text boxes and click the send button the message seems to send but when the page returns it looks exactly the same as when it left. I am pretty sure my settings are correct but I
get nothing in my email account. The settings I have I will show except the password.
Private Sub SendMail()
Dim mailMessage As New System.Net.Mail.MailMessage
mailMessage.From = New MailAddress("firstname.lastname@example.org")
<smtp><network host="mail.andrewmorriswebdesign.co.uk" port="25" userName="email@example.com" password="*********" defaultCredentials="true"/>
The rest of the code is just the same as in the tutorial so does anyone know why or where I have gone wrong?
Feb 13, 2009 07:38 PM|Danny117|LINK
Really quick put in a support ticket with your hosting provider. They might have some unique requirements and examples on how to send email from code. My hoster has examples your's does too I'm sure of it.
Oh yeah nice website too man I checked it out.
Feb 13, 2009 08:03 PM|oradev-ming|LINK
First verify the network host is correct, if for you local machine, you can just use your IP assigned by your ISP in the following format
<network host="67.183.00.00" port="25"
If you use comcast, it would be
<network host="smtp.comcast.net" password="yourpwd" userName="firstname.lastname@example.org" />
Feb 14, 2009 03:06 AM|morrisandy|LINK
Thanks Danny, Im in the middle of currently redoing a new one which is why I am having this hassle. I emailed webhost4life and they sent me to this article.
http://www.webhost4life.com/HostingKB/KnowledgebaseArticle50103.aspx which basically says what I have done, I think?
The email for the website you saw is working fine but is setup within a wizard, i am just using the hosting server and email for testing this new setup I have on my localhost.
Feb 14, 2009 03:22 AM|morrisandy|LINK
I use webhost for life and they use sperate email servers which they provide us with and tell use to use the mail.YourDomain.com method, there is an artical I just posted in reply to Dannys comments which seems to reiterate what you say however I still don't
seem to be getting emails through and there is no errors showing up in Visual Studio.