Added support for remote SMTP server
Make remote SMTP use optional