Last post Jan 05, 2012 04:00 PM by zaco09
Jan 04, 2012 01:38 AM|Anbu Arunmozhi|LINK
when ever i execute my project this kind of error occoured
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 127.0.0.1:25
how to clear this error
help me it urgent
Jan 04, 2012 01:43 AM|setahamid|LINK
try following it may help you to resolve your issue
It can be due to firewall settings or antivirus solutions blocking traffic.
Jan 04, 2012 01:47 AM|Careed|LINK
Have you verified that your local machine can process an SMTP request? It sounds like that you have blocked SMTP on your local machine (port 25) or you do not have the correct credentials for your SMTP server locally.
Jan 04, 2012 01:52 AM|Sum8|LINK
Do you have a SMTP server? If yes, are you able to ping it? Otherwise you need to test your code on the server having SMTP server installed.
Jan 04, 2012 02:25 PM|ray9|LINK
1st verify that you smtp mail server settings are ok,
2nd, check why your application is sending email on its start ? is that necessary ?
Jan 05, 2012 01:38 AM|Anbu Arunmozhi|LINK
yes , in my local system no smtp server .
do u know how to install smtp server in windows 7 .
that same code work in windows xp but not work in windows 7
Jan 05, 2012 02:07 AM|Careed|LINK
Microsoft removed the SMTP server from IIS in Windows 7. You can use any freeware SMTP server.
Look here for info on freeware SMTP:
You probably should run this as a Windows service, as it will need to be running continuously to ensure its availability.
Jan 05, 2012 04:00 PM|zaco09|LINK
consider using this free mail server: