Add Sendmail transport

Created on 10 April 2022, over 2 years ago
Updated 26 October 2023, about 1 year ago

Problem/Motivation

Symfony Mailer library now recommends Sendmail, and avoiding Native.

Proposed resolution

  • Create Sendmail transport. Use a settings.php variable mailer_sendmail_commands to specify available commands (otherwise can execute arbitrary shell commands).
  • Add warning to Native transport
  • Change default configuration to Sendmail
  • Update hook: if the automatically created Native transport still exists, delete it and replace with Sendmail
  • Create Null transport

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom adamps

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom Alex G

    Just in case someone is using laragon on Windows you can use something similar to the below:

    $config['symfony_mailer.mailer_transport.sendmail']['configuration']['query']['command'] = ini_get('sendmail_path') . ' -t';

    $settings['mailer_sendmail_commands'] = [
    ini_get('sendmail_path') . ' -t'
    ];

Production build 0.71.5 2024