I am new to the .NET platform. And I'm currently learning ASP.NET MVC.
I want to send an email from my program, and I have the following code:
public void sendVerrificationEmail() {
Now, when I execute this code, I get the following exception:
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:25
Now I am very new to IIS Manager and more. therefore, maybe something is wrong.
Do I need to install a virtual SMTP server or something like that? I currently have the following settings:
http://img153.imageshack.us/img153/695/capture2p.png
I searched for a few hours, but I can not find a working solution.
Help will be appreciated!
user323395
source share