Added SendGrid functionality (broken atm)