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
(self host 1/?): allow users to configure their own email service (#972)
* feat: allow different email providers to be used when self-hosting, or allow users to disable email
* fix: handle errors and fix types
* chore: capitalize Gmail properly
Co-authored-by: Kalil Smith-Nuevelle <[email protected]>
---------
Co-authored-by: Kalil Smith-Nuevelle <[email protected]>
"Missing required SMTP configuration. Please set MAILGUN_SMTP_HOST, MAILGUN_SMTP_PORT, MAILGUN_SMTP_USERNAME, and MAILGUN_SMTP_PASSWORD in order to send emails."
For the most part, self-hosting PubPub is a matter of deploying the app and the database, which you can do with the accompanying docker-compose file in `self-host/docker-compose.yml`.
4
+
5
+
However, there are a few key things you need to know about.
6
+
7
+
## Email
8
+
9
+
To be able to send emails, you need to set some kind of email provider.
10
+
11
+
We recommend using [Mailgun](https://www.mailgun.com/).
12
+
13
+
Other common options are [SendGrid](https://sendgrid.com/) and [Postmark](https://postmarkapp.com/).
14
+
15
+
You can also use an existing GMail or Office365 account to relay emails through PubPub.
16
+
17
+
### Setup
18
+
19
+
#### Mailgun
20
+
21
+
To use Mailgun, you will need to create an account on [Mailgun](https://www.mailgun.com/) and set the following environment variables:
MAILGUN_SMTP_PASSWORD="your app password"# this will be a 16 character string
55
+
MAILGUN_SMTP_FROM="[email protected]"# technically optional, but you will almost definitely need to set this.
56
+
MAILGUN_SMTP_FROM_NAME="Your Organization"# Optional, will default to "PubPub Team"
57
+
```
58
+
59
+
#### Office 365
60
+
61
+
You can (for now) send emails through Office 365 Outlook/Exchange through SMTP, although Microsoft has repeatedly stated they will likely deprecate this feature in the future.
62
+
63
+
You cannot send emails through shared mailboxes, you will need to an existing Microsoft account with a valid Office 365 subscription.
MAILGUN_SMTP_FROM="[email protected]"# technically optional, but you will almost definitely need to set this, as it will use `[email protected]` by default.
71
+
MAILGUN_SMTP_FROM_NAME="Your Organization"# Optional, will default to "PubPub Team"
72
+
```
73
+
74
+
#### No email
75
+
76
+
You can technically leave the email provider blank, but this will disable the email functionality. The email action will still be visible in the UI, but it will fail when you try to send an email.
0 commit comments