Sending email from

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?.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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 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 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.

Take Care That AntiVirus May be Blocking The Mail sending..
chandar_bhandariAuthor Commented:
Problem is resolved ... we have changed the code.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chandar_bhandariAuthor Commented:
change in Programming code.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.