Add SMTP config info

This commit is contained in:
John Lees-Miller
2018-10-27 20:32:21 +01:00
parent 0b775ca2d8
commit c69d581c58

View File

@ -133,6 +133,18 @@ You can of course customize everything, but here are some places to start:
- `CONTACT_EMAIL` — the email address that users can use to contact you, e.g. `info@mywedding.com`
- `FROM_EMAIL` — the email address that confirmations emails will come from
### Sending Email
There are environment variables that correspond to each [`smtp_settings`](https://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration) key in the ActionMailer config.
- `SMTP_ADDRESS` — name of the SMTP server
- `SMTP_PORT` — port the SMTP server listens on (default `587`)
- `SMTP_DOMAIN` — HELO domain, if required
- `SMTP_USER_NAME` — user name for SMTP server
- `SMTP_PASSWORD` — password for SMTP server
- `SMTP_AUTHENTICATION` — authentication type (default `plain`)
- `SMTP_ENABLE_STARTTLS_AUTO` — automatically detect if STARTTLS is enabled and use it if so (default `true`)
### ReCAPTCHA
If set, the website will use an invisible reCAPTCHA to prevent spam. You can get these from [Google reCAPTCHA's admin page](https://www.google.com/recaptcha/admin). Be sure to choose "Invisible" for the type.