Skip to content

Commit

Permalink
add smtp settings to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfranzen committed Sep 12, 2020
1 parent cd79594 commit b8202bc
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,23 @@ Open test coverage results with

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.

### 15. Sending emails
Set your SMTP settings with these environment variables:
- `SMTP_ADDRESS`
- `SMTP_PORT`
- `SMTP_DOMAIN`
- `SMTP_USERNAME`
- `SMTP_PASSWORD`
- `SMTP_AUTH`
- `SMTP_ENABLE_STARTTLS_AUTO`

### 15. Deployment
Have a look at `config/environments/production.rb` where we set the `config.action_mailer.smtp_settings`.

#### FROM email
Set the email address for your `ApplicationMailer` and devise emails with env var `DEVISE_MAILER_FROM`.


### 16. Deployment
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.

#### Heroku
Expand Down

0 comments on commit b8202bc

Please sign in to comment.