Rank: Newbie
Groups: Member
Joined: 12/15/2013(UTC) Posts: 2 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
|
|
|
|
Rank: Administration
Groups: Administration, Member Joined: 1/17/2013(UTC) Posts: 13
Thanks: 2 times
|
Originally Posted by: Tony 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. |
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 12/15/2013(UTC) Posts: 2 Location: Houston
|
Yes It did work Ron Thanks so much
|
|
|
|
Rank: Administration
Groups: Administration, Member Joined: 1/17/2013(UTC) Posts: 13
Thanks: 2 times
|
Originally Posted by: Tony Yes It did work Ron Thanks so much Most Welcome Tony and we are glad to help. |
|
|
|
|
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.
Important Information:
The HostingFest Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close