Simple SMTP mailing with .NET
SMTP Mail is a handy thing to have on any web site, be it for orders or just for
user feed back. .NET provides you with the Mail class that has everything you
need to send mail.
Here is a small example of the class in action; it sends the source code to a
designated email address.
You will notice that the System.Web.Mail.SmtpMail class is assigned to a
variable before it is used. This is not necessary if you are going to be using
the SMTP service on your web server, you can directly call the
System.Web.Mail.SmtpMail.send method.
However, the ability to nominate an SMTP server is a nice feature, as it aids
administration, in that you have only one SMTP server to worry about
configuring and securing.



















