Archives

Archives / 2008 / enero
  • Send mails from .NET

    .NET offers a simple way to send mails from our applications.
    We only need to create a instance of the class MailMessage, that will represent the email, and another instance of the class Smtp that will act like a Smtp Client to send the email.
    Both of them are on the System.Net.Mail namespace.
    The source code to use is very simple: