Add support for starttls and allow modification of SMTP server port