configures the sendgrid