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.

6 Years
Discussion Span
Last Post by mgonzalezwec
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.