added SendGrid integration (not complete)