Last post Nov 18, 2008 02:12 AM by Maharkhan
Oct 10, 2007 03:29 PM|jhmulder|LINK
i created an email address on the hosting server and is working fine.
when i test my site locally (with the mail settings from my hosting server), sending emails from the site work fine. as soon as i upload my website to my server i cant send emails anymore. i there something that i should change before i upload the site
to the server. the server does require smtp authentication. Web.config settings:
Oct 10, 2007 04:49 PM|ashmetry|LINK
If you are sure that all the server info is correct. Are you using the hosting company's smtp server( are you sure all info is correct)?
If not then contact them because they might have a firewall thats blocking smtp traffic.
Oct 10, 2007 10:09 PM|darkknight187|LINK
You didn't mention who you are hosting with, which might be different.
But try this, this works, and I'm hosting with godaddy.
<network host="relay-hosting.secureserver.net" port="25" defaultCredentials="true"/>
If you are not hosting with godaddy, try doing a search on your hosting servers web page for "smtp settings"
Oct 11, 2007 03:52 AM|jhmulder|LINK
Will try that.
am hosting with 1and1. is a uk company. am doing the site for a friend and he was registered with them before, so am using that.
Oct 11, 2007 04:03 AM|Suprotim Agarwal|LINK
Check this post for a step by step approach
Oct 11, 2007 07:17 AM|jhmulder|LINK
Thanx for all the quick replies. I got it sorted. it was just my port nr that was wrong. When I access the smtp server from a local pc or so I should use the port 587 (their port nr), but when i upload the site i should change the port ny back to the default
25 (since im now working on the server - I got told...). but anyway, its working now.
Nov 18, 2008 02:12 AM|Maharkhan|LINK
Hi i am not able to write this web.config code in my project. I add just <add key="smtpserver" value="localhost"/>
<add key="port" value="25"/>
<add key="UserName" value="wwww"/>
<add key="Password" value="zzzzz"/> on my web.config . so in code section means in .VB file which value i have to pass in this code "smtp.Credentials = New System.Net.NetworkCredential("?????", "?????") ".plz give me reply as early as possible. [8-)]