Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
for sending mail i wrote code it run properly off line and mail was send but after uploading it show error---------
No connection could be made because the target machine actively refused it 208.43.91.170:25
Please anyone can help me
Posted
Comments
OriginalGriff 21-Jul-11 5:59am    
Not from that, no.
Use the "Improve question" widget to edit your question and provide better information.
Herman<T>.Instance 21-Jul-11 6:38am    
Something tells me you do not have the right to use the smpt server on port 25. A firewaal is blocking that port. I suggest you ask which port should be used at the owner of the smtp server

Could you add your code so we can see?

1 solution

Servers can be configured to accept access only from known IPs or IP bands. The message you received is most likely caused by this. It was an error I encountered my self. All was good and well when I ran the program in our testing environment. When the solution was deployed to the web server the mail server refused to accept the connection because the webserver's IP was not explicitely allowed.

Cheers!

MRB
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900