Final update with SMTP functionality. No more time waste with sanity checks.
Merge if you want