title: Standard emailer class?
body: <p>I'm going through my app, trying to clean up some code that sends e-mails. I started creating my own emailer wrapper class, but then I figured that there must be a standard emailer class out there somewhere. I've done some searching, but couldn't find anything.</p>
  
  <p>Also, is there a code base for stuff like this anywhere?</p>
  
  <p><strong>EDIT</strong>: Sorry, let me clarify.</p>
  
  <p>I don't want to have this in my code any time I need to send an e-mail:</p>
  
  <pre><code>System.Web.Mail.MailMessage message=new System.Web.Mail.MailMessage();
  message.From="from e-mail";
  message.To="to e-mail";
  message.Subject="Message Subject";
  message.Body="Message Body";
  System.Web.Mail.SmtpMail.SmtpServer="SMTP Server Address";
  System.Web.Mail.SmtpMail.Send(message);
  </code></pre>
  
  <p>I created a class named Emailer, that contains functions like:</p>
  
  <pre><code>SendEmail(string to, string from, string body)
  SendEmail(string to, string from, string body, bool isHtml)
  </code></pre>
  
  <p>And so I can just put this a single line in my code to send an e-mail:</p>
  
  <pre><code>Emailer.SendEmail("name@site.com", "name2@site.com", "My e-mail", false);
  </code></pre>
  
  <p>I mean, it's not too complex, but I figured there was a standard, accepted solution out there.</p>