title: Haskell: SMTP over SSL
body: <p>I wanted to write a utility script in Haskell last night that sent some emails using my gmail account.</p>
  
  <p>However, <a href="http://mail.google.com/support/bin/answer.py?answer=13287" rel="noreferrer">gmail requires a SSL/TLS connection to their SMTP server</a>, and I couldn't figure out how to accomplish this with <a href="http://hackage.haskell.org/packages/archive/HaskellNet/latest/doc/html/Network-HaskellNet-SMTP.html#v:sendMail" rel="noreferrer">HaskellNet's <code>sendMail</code></a>.</p>
  
  <p>How could I have done this with HaskellNet?  Or is there a different SMTP library I should use?</p>