Added sendgrid support for emails