Aahh got it... I got it working :)
Thanks Christopher, your suggesion is correct.
But, finding "Default SMTP Virtual Server" was tricky ;)
Even if you use IIS7 to deploy your web site, you have to open IIS6 Manager to configure SMTP server (why?).
I configured SMTP server as follows to make things work:
- Open IIS6 Manager using Control Panel --> Administrative Tools.
- Open SMTP Virtual Server properties.
- On General tab, Set IP address of
the Web server instead of "All
Unassigned".
- In Access tab, click on Relay
button, this will open Relay
Restrictions dialog.
- In relay computers list, add the
loopback IP address i.e 127.0.0.1
and IP address of the Web server, so that they can pass/relay emails through the SMTP server.