Proxy Refusing While Sending A Mail From ASP.NET by using System Net.Mail NameSpace

Posted by BangaruBabu under ASP.NET on 7/9/2010 | Views : 3159 | Status : [Member] | Replies : 2
I wrote some Code For Sending e-Mail in ASP.NET....it is working Fine Without Using Proxy Server....

But In Production, I am Working Under Proxy Server @ that time i am Facing Run time Error Like

"Failure Sending Mail"---- even i stopped Anti virus and Firewalls.....


suggest any remedies For My Problem,

Thanks In Advance

BangaruBabu Pureti
http://bangarubabupureti.spaces.live.com/



Responses

Posted by: Raja on: 7/9/2010 [Member] Starter

Up
0
Down
Look at following posts, you may need to use NetworkCredential object and specify the proxy authentication details.

http://www.systemnetmail.com/faq/4.2.aspx
http://bytes.com/topic/net/insights/648873-quick-reference-how-send-email-using-net

Thank you

Regards,
Raja, USA

BangaruBabu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhilan on: 7/11/2010 [Member] Starter

Up
0
Down
if you are using SMTP Server try this
[code]
System.Net.NetworkCredential credentials = new System.Net.NetworkCredential();
smtpClient.Credentials = credentials;
[/code]



BangaruBabu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response