You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/docs/self-hosting/config-settings.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,3 +138,4 @@ You will also be prompted for a parameter "Type". The default option is "String"
138
138
|`auditEventLogStream`| Optional AWS CloudWatch Log Stream name for `AuditEvent` logs. Only applies if `auditEventLogGroup` is set. Uses `os.hostname()` as the default. |||`os.hostname()`|
139
139
|`registerEnabled`| Optional flag whether new user registration is enabled. |||`true`|
140
140
|`maxJsonSize`| Maximum JSON size for API calls. String is parsed with the [bytes](https://www.npmjs.com/package/bytes) library. Default is `1mb`. |||`1mb`|
141
+
|`smtp`| Optional SMTP email settings to use SMTP for email. See [Sending SMTP Emails](/docs/self-hosting/sendgrid) for more details. |||
This page describes how to use [SendGrid](https://app.sendgrid.com/) as an [SMTP Relay](https://sendgrid.com/blog/smtp-relay-service-basics/) to send emails from Medplum.
8
+
9
+
:::note
10
+
11
+
SMTP email is only available when self-hosting Medplum.
12
+
13
+
Medplum's hosted environment uses [Amazon Simple Email Service (SES)](https://aws.amazon.com/ses/). Amazon SES is the default Medplum email provider.
14
+
15
+
:::
16
+
17
+
## Prerequisites
18
+
19
+
Be sure to perform the following prerequisites to complete this tutorial.
20
+
21
+
1. Sign up for a [SendGrid account](https://signup.sendgrid.com/)
22
+
2. Create and store a [SendGrid API key](https://app.sendgrid.com/settings/api_keys) with full access "Mail Send" permissions.
23
+
3. Verify your [SendGrid Sender Identity](https://docs.sendgrid.com/for-developers/sending-email/sender-identity/)
24
+
25
+
See the SendGrid [How to Send an SMTP Email](https://docs.sendgrid.com/for-developers/sending-email/getting-started-smtp) guide for step by step instructions.
26
+
27
+
## Configuring Medplum Server for SMTP
28
+
29
+
Open your Medplum server config file. When developing on localhost, the default config file location is `packages/server/medplum.config.json`.
30
+
31
+
Change the `supportEmail` to your Sender Identity email address:
Add a new `smtp` section for the SendGrid SMTP settings. Use your API key as the SMTP password:
38
+
39
+
```json
40
+
"smtp": {
41
+
"host": "smtp.sendgrid.net",
42
+
"port": 587,
43
+
"username": "apikey",
44
+
"password": "YOUR_API_KEY"
45
+
}
46
+
```
47
+
48
+
## Testing
49
+
50
+
Once your configuration settings are saved, restart the Medplum server. All subsequent emails will be sent via SendGrid SMTP Relay. For example, you can [invite a new user](/docs/app/invite) or reset your password to send a new email.
51
+
52
+
:::tip
53
+
54
+
If your SendGrid account is new, email delivery may be slow for the first 24 hours.
0 commit comments