AthennaIO / AthennaIO/Mail

[Feature]: Add global "from" and "replyTo" in configurations files

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
feature good first issue
Dominant language
TypeScript
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### 🚀 Feature Proposal

Add a global `from` and `replyTo` properties in the configuration files. The `SmtpDriver` class should read the configuration file and get this default values. If `from` or `replyTo` method of `SmtpDriver` class are called, than it should subscribe the defaults.

### Motivation

Make it easier to send emails without having to repeatedly add information.

### Example

**config/mail.js file:**
```js
{
default: ...
from: 'no-reply@athenna.io',
replyTo: 'support@athenna.io, lenonsec7@gmail.com'
mailers: [....,
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.