Added SendGrid functionality