## mgonzalezwec

How do I specify the default SMTP host within Visual Studio 2005 or within a web project in Visual Studio 2005? I realize this can be done in the web.config file, however I don't want to do it at that level (I would rather it be done at the machine level). I can set the default SMTP host on IIS 7.0 so that I do not have to specify it in all of my applications, but I cannot find where to specify this in Visual Studio 2005. Is there a machine.config file somewhere that I can change to add this default host? When I debug my web project within Visual Studio, I get run-time errors because I have not specified the SMTP host, but this is not needed on the IIS server so I don't want to code it in. I appreciate your help.

## Ramesh S 129

Hi,

The machine.config file can be located in the following folder in the server/PC.
drive:\<windows>\Microsoft.NET\Framework\<version>\config\machine.config

You can open it using notepad or VS 2005.

## mgonzalezwec

Perfect. Thank you.