Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the free version for Google Apps to host my mail. I want to set is so that mail is routed via google apps as this will give me a much better reputation and mail will not go to the spam folder as much. Doe anyone know how this is done? Would I need to setup IIS to do this?

The site is writeen in C# ASP.NET. So Could I perhaps just update the web.config file to route mail via google apps?

share|improve this question

The term to research is 'smarterhost'. IIS SMTP and other tools like SmarterMail support a smarthost. This allows you to send to 'localhost' which in turn will forward your request to another mail server.

However, I don't know off the top of my head if IIS SMTP or SmarterMail support custom credentials and ports that Google Apps requires. They probably do, just be careful to remember whenever you make a password change that you'll need to update these settings too.

Alternately you can directly send it from C#. Here's a post on the syntax in your config file and from code:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.