Skip to content

Commit b8202bc

Browse files
committed
add smtp settings to Readme
1 parent cd79594 commit b8202bc

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,23 @@ Open test coverage results with
167167

168168
We are using the wonderful [rubocop](https://github.com/rubocop-hq/rubocop-rails) to lint and autofix the code. Install the rubocop VSCode extension to get best experience during development.
169169

170+
### 15. Sending emails
171+
Set your SMTP settings with these environment variables:
172+
- `SMTP_ADDRESS`
173+
- `SMTP_PORT`
174+
- `SMTP_DOMAIN`
175+
- `SMTP_USERNAME`
176+
- `SMTP_PASSWORD`
177+
- `SMTP_AUTH`
178+
- `SMTP_ENABLE_STARTTLS_AUTO`
170179

171-
### 15. Deployment
180+
Have a look at `config/environments/production.rb` where we set the `config.action_mailer.smtp_settings`.
181+
182+
#### FROM email
183+
Set the email address for your `ApplicationMailer` and devise emails with env var `DEVISE_MAILER_FROM`.
184+
185+
186+
### 16. Deployment
172187
The project runs on every webhoster with ruby installed. The only dependency is a PostgreSQL database. Create a block `production:` in the`config/database.yml` for your connection.
173188

174189
#### Heroku

0 commit comments

Comments
 (0)