Reply is below:

How does which SMTP server you are relaying through have anything to do with
.NET deployment or the SMTP class?

* Just saying that it seemed easier with ASP where you would declare the
mail object and send the mail. You really didn't need to worry about which
SMTP Server it was going to use (it would use either the default SMTP
server that comes with IIS or the server administrator could configure a
smart host address for handling the mail).  Just saying that being forced
to declare SmtpMail.SmtpServer (Still reasonably new at .Net so not 100%
sure you have to declare....this is just what I haved experienced) and give
it an address seems like it's even more work to deploy the site (Not
talking about the other aspects of deployment as it is much better than dll
hell..just talking with regards to making it possible to send email ASP
Model vs ASP.NET).

Best practice probably would be to add a Config Setting in the web.config.
Then you change this instead of it being hardcoded, forcing a recompile.

* Thanks - will look into using this method.

Regards,

John

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to