From c69d581c58cdc80a209be9b27b456be415ab6a89 Mon Sep 17 00:00:00 2001 From: John Lees-Miller Date: Sat, 27 Oct 2018 20:32:21 +0100 Subject: [PATCH] Add SMTP config info --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 57df8e6..3822586 100644 --- a/README.md +++ b/README.md @@ -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.