chandar_bhandari
asked on
Sending email from asp.net
we are using Asp.NET application running under IIS6 (in win xp) is sending email without a problem. but when i configured the same app into iis7 (win2008) i am not able to send emails thru Asp application.
Is there any setting diff between iis6 and iis7?.
Thanks
Is there any setting diff between iis6 and iis7?.
Thanks
You have to Enable Relay for localhost:
1. Open the Internet Information Services (IIS) 6.0 Manager.
2. Right-click on Default SMTP Virtual Server.
3. On the Properties page, open the Access tab, and then click on Connection. You can see which server or IP addresses are allowed to connect to the server.
4. If the IP address 127.0.0.1 is not listed, add it using the Add button. You may also add your server IP address to the list.
5. Click OK to accept the information.
6. Click the Relay button on the Access tab, and set up the relay options for the server. Ensure that localhost and the IP address 127.0.0.1 are granted permission to relay mail.
7. Click OK to accept the options, and then click Apply and OK to return to the main page of the IIS Manager.
8. Click IIS SMTP.
1. Open the Internet Information Services (IIS) 6.0 Manager.
2. Right-click on Default SMTP Virtual Server.
3. On the Properties page, open the Access tab, and then click on Connection. You can see which server or IP addresses are allowed to connect to the server.
4. If the IP address 127.0.0.1 is not listed, add it using the Add button. You may also add your server IP address to the list.
5. Click OK to accept the information.
6. Click the Relay button on the Access tab, and set up the relay options for the server. Ensure that localhost and the IP address 127.0.0.1 are granted permission to relay mail.
7. Click OK to accept the options, and then click Apply and OK to return to the main page of the IIS Manager.
8. Click IIS SMTP.
Hi,
http://forums.iis.net/t/1144383.aspx
Take Care That AntiVirus May be Blocking The Mail sending..
http://forums.iis.net/t/1144383.aspx
Take Care That AntiVirus May be Blocking The Mail sending..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
change in Programming code.
Yes there are many differences between 5 or 6 and 7
But first what do you mean not able to send mails?
Any errors?
Are you routing through a mail server or directly?
What method are you using to send mails?