making SMTP configuration optional