added fallbacks on smtp configs for sendgrid