logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Tony  
#1 Posted : Monday, December 16, 2013 6:22:29 PM(UTC)
Tony
Rank: Newbie

Reputation:

Groups: Member
Joined: 12/15/2013(UTC)
Posts: 2
United States
Location: Houston

I have the set up in outlook with smtp server=mail.dieu-ha.com and port=587 and its working fine. But when send email from the website with web.config set at the same. It gives error:
"System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 204.12.216.187:587
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
"
my web.config seeting:

<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="Hanguyen@dieu-ha.com" >
<network host="mail.dieu-ha.com" port="587"
password="*****" />
</smtp>
</mailSettings>
</system.net>

What is the problem here? please help
Eminempk  
#2 Posted : Wednesday, December 18, 2013 11:20:59 AM(UTC)
Eminempk
Rank: Administration

Reputation:

Groups: Administration, Member
Joined: 1/17/2013(UTC)
Posts: 13

Thanks: 2 times
Originally Posted by: Tony Go to Quoted Post
I have the set up in outlook with smtp server=mail.dieu-ha.com and port=587 and its working fine. But when send email from the website with web.config set at the same. It gives error:
"System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 204.12.216.187:587
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
"
my web.config seeting:

<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="Hanguyen@dieu-ha.com" >
<network host="mail.dieu-ha.com" port="587"
password="*****" />
</smtp>
</mailSettings>
</system.net>

What is the problem here? please help




Hello Tony,

Please use <network host="mail.server" port="587"

in your script then it will work fine, Let us know if it didnt.

Thanks.

Tony  
#3 Posted : Wednesday, December 18, 2013 7:47:12 PM(UTC)
Tony
Rank: Newbie

Reputation:

Groups: Member
Joined: 12/15/2013(UTC)
Posts: 2
United States
Location: Houston

Yes It did work Ron
Thanks so much
Eminempk  
#4 Posted : Thursday, December 19, 2013 6:29:48 AM(UTC)
Eminempk
Rank: Administration

Reputation:

Groups: Administration, Member
Joined: 1/17/2013(UTC)
Posts: 13

Thanks: 2 times
Originally Posted by: Tony Go to Quoted Post
Yes It did work Ron
Thanks so much


Most Welcome Tony and we are glad to help.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.