fixed NPE if no SMTP server is configured