SendGrid - CDCgov/prime-simplereport GitHub Wiki
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.
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 theyamlfile for the environment you are hoping to enable SendGrid. (For example, if you wanted to enable SendGrid ondev5you would edit theapplication-azure-dev5.yamlfile. -
In the file, set
sendgridenabledvalue 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.