basic sendgrid code in place