Read This Pages :
http://hackage.haskell.org/package/HaskellNet-SSL-0.2.1/docs/Network-HaskellNet-SMTP-SSL.html
Easily Connector 🙂
https://github.com/dpwright/HaskellNet-SSL
Maybe this can help you!
Set Your Username And Password:
By send commands
sendCommand :: SMTPConnection -> Command -> IO (ReplyCode, ByteString)