Link to home
Start Free TrialLog in
Avatar of chandar_bhandari
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
Avatar of Rovastar
Rovastar
Flag of United Kingdom of Great Britain and Northern Ireland image

For XP you have IIS 5.1 not 6.0 (unless you have 64bit XP)

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?
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.
Avatar of qwe123kidds
qwe123kidds

Hi,

http://forums.iis.net/t/1144383.aspx

Take Care That AntiVirus May be Blocking The Mail sending..
ASKER CERTIFIED SOLUTION
Avatar of chandar_bhandari
chandar_bhandari

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chandar_bhandari

ASKER

change in Programming code.