Im trying to send email to the user when registering.
But its generating an error “No connection could be made because the target machine actively refused it 127.0.0.1:25”.
Currently I have add this to the web.config
<system.net>
<mailSettings>
<smtp>
<network
host="localhost"
port="25"
defaultCredentials="true"
/>
</smtp>
</mailSettings>
</system.net>
As pointed out by
Ben RobinsonandErnest Friedman-Hillyou need to haveSMTPserver installed on your local machine. Otherwise you can use any other host.I used
gmailas a host here.While using this Don’t forget to enable the SSL