Sendgrid - CDCgov/prime-simplereport GitHub Wiki
SendGrid
About
SendGrid is a cloud-based SMTP provider that allows us to send emails in our app.
We use SendGrid to send emails for test results or when a patient bulk upload has successfully completed.
Enabling SendGrid in Envs
By default, many of the lower environments have SendGrid turned off. To turn on SendGrid in the lower environments for testing purposes, do the following:
-
In
backend/src/main/resources/
edit theyaml
file for the environment you are hoping to enable SendGrid. (For example, if you wanted to enable SendGrid ondev5
you would edit theapplication-azure-dev5.yaml
file. -
In the file, set
sendgrid
enabled
value totrue
. -
Deploy the change, to the lower environment of your choice.
-
Be sure to turn off SendGrid once you are done testing. Example here of how that is done.