Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 27, 2012 06:09 PM by bammidi
Member
510 Points
986 Posts
Jun 26, 2012 05:20 PM|LINK
i have redirected my website to new website new hosting server,but now the emails are not working
so plz do help me to setup smtp in C# i m really dont how from where to change SMT as in WEB.CONFIG dere is nthing
page creating prb is as follow ,i m new for C# i dont knw on submit which page is getting called n all just showing me error
506 Points
78 Posts
Jun 26, 2012 05:45 PM|LINK
In C Sharp:
In Web.Config:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="name@domain.com">
<network host="smtp.mail.com" userName="name@domain.com" password="password-1" port="25"/>
</smtp>
</mailSettings>
</system.net>
Jun 27, 2012 04:56 AM|LINK
<appSettings> <add key="MySMTPServer" value="relay-hosting.secureserver.net"/> <connectionStrings/>
in web config: i cant find anr setting for SMTP in web config
<add key="MySMTPServer" value="relay-hosting.secureserver.net"/>
What dis line is doing
plz help
Jun 27, 2012 10:15 AM|LINK
"relay-hosting.secureserver.net" is the host name of the smtp.
Find where "MySMTPServer" configuration key is used in your application.
402 Points
216 Posts
Jun 27, 2012 06:09 PM|LINK
refer this, there is a brief description
http://www.codeproject.com/Articles/10828/Sending-Email-with-attachment-in-ASP-NET-using-SMT
Smadhu
Member
510 Points
986 Posts
How to SETUP SMTP mail
Jun 26, 2012 05:20 PM|LINK
i have redirected my website to new website new hosting server,but now the emails are not working
so plz do help me to setup smtp in C# i m really dont how from where to change SMT as in WEB.CONFIG dere is nthing
page creating prb is as follow ,i m new for C# i dont knw on submit which page is getting called n all just showing me error
Rajaji.K
Member
506 Points
78 Posts
Re: How to SETUP SMTP mail
Jun 26, 2012 05:45 PM|LINK
In C Sharp:
In Web.Config:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="name@domain.com">
<network host="smtp.mail.com" userName="name@domain.com" password="password-1" port="25"/>
</smtp>
</mailSettings>
</system.net>
Smadhu
Member
510 Points
986 Posts
Re: How to SETUP SMTP mail
Jun 27, 2012 04:56 AM|LINK
<appSettings> <add key="MySMTPServer" value="relay-hosting.secureserver.net"/> <connectionStrings/>in web config: i cant find anr setting for SMTP in web config
What dis line is doingplz help
Rajaji.K
Member
506 Points
78 Posts
Re: How to SETUP SMTP mail
Jun 27, 2012 10:15 AM|LINK
"relay-hosting.secureserver.net" is the host name of the smtp.
Find where "MySMTPServer" configuration key is used in your application.
bammidi
Member
402 Points
216 Posts
Re: How to SETUP SMTP mail
Jun 27, 2012 06:09 PM|LINK
refer this, there is a brief description
http://www.codeproject.com/Articles/10828/Sending-Email-with-attachment-in-ASP-NET-using-SMT