Rip off example for using SMTP/TLS from FreeNAS's gui.system.common module