cms icon indicating copy to clipboard operation
cms copied to clipboard

Swappable email config

Open timkelty opened this issue 3 years ago • 1 comments

This changes the schema of the email node in project config, so that you can have multiple configured transports represented, and change the active one.

email.transportType and email.transportSettings are replaced with email.transport and email.transports:

email:
  fromEmail: [email protected]
  fromName: 'Pixel & Tonic'
  replyToEmail: null
  template: ''
  transport: $EMAIL_TRANSPORT
  transports:
    postmark:
      type: craftcms\postmark\Adapter
      settings:
            token: $POSTMARK_TOKEN
    mailhog:
      type: craft\mail\transportadapters\Smtp
      settings: 
            encryptionMethod: none
            host: localhost
            password: ''
            port: '1025'
            timeout: '10'
            useAuthentication: '0'
            username: ''

timkelty avatar Sep 12 '22 05:09 timkelty

Moving to draft to update/re-evaluate

timkelty avatar Jan 15 '24 16:01 timkelty