Skip to content

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

@jlenon7

Description

@jlenon7

🚀 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:

{
  default: ...
  from: '[email protected]',
  replyTo: '[email protected], [email protected]'
  mailers: [....,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions