Skip to content

Commit

Permalink
feat(sails-mail): add docs for replyTo
Browse files Browse the repository at this point in the history
  • Loading branch information
DominusKelvin committed Nov 21, 2024
1 parent 945c4f6 commit 96378b3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/mail/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ In Mail, a mailer is a configuration object that is registered in the `mailers`

## `from`

This config let you set a global from address for all your emails. It's really useful if your application sends emails from the same from address.
This config lets you set a global from address for all your emails. It's really useful if your application sends emails from the same from address.

By default Mail will use this address if no address is passed when you send an email with `sails.helpers.mail.send`

Expand All @@ -77,3 +77,15 @@ from: {
```

You can also set this config by specifying these two environment variables: `MAIL_FROM_NAME` and `MAIL_FROM_ADDRESS`.

## `replyTo`

This config lets you set a global reply-to address for all your emails. It's useful if you want replies to go to a specific address.

Mail will use this address by default if no `replyTo` address is provided when sending an email with `sails.helpers.mail.send`.

```js
replyTo: 'reply@sailscasts.com'
```

You can also set this config by specifying the environment variable `MAIL_REPLY_TO`.

0 comments on commit 96378b3

Please sign in to comment.