- Issue created by @safetypin
- π¬π§United Kingdom adamps
1) You can try the Native transport but it's not recommended
2) Use SMTP transport. - πΊπΈUnited States safetypin Memphis, Tennessee
Can you explain why "Native transport" option is not recommended? It appears to be working for me.
- π¬π§United Kingdom adamps
See the warning at https://symfony.com/doc/current/mailer.html#using-built-in-transports
- πΊπΈUnited States safetypin Memphis, Tennessee
Ok, that sort of makes sense to me. So, the argument against using native transport is: you cannot control how sendmail is configured.
I poked around the issues, and I found this ( https://www.drupal.org/project/symfony_mailer/issues/3274465#comment-145... β¨ Add Sendmail transport Fixed ):
$settings['mailer_sendmail_commands'] = [ '/usr/sbin/sendmail -i -S -t mailhog:1025', ];
This looks to me like I can override the sendmail command. Could I use this to get around the -bs flag support issue?
- Status changed to Fixed
over 1 year ago 5:10pm 21 April 2023 - π¬π§United Kingdom adamps
This looks to me like I can override the sendmail command. Could I use this to get around the -bs flag support issue?
Yes but it's still not recommended as described on the page I already linked toπ
you won't have error reporting and Bcc headers won't be removed
- πΊπΈUnited States safetypin Memphis, Tennessee
Thanks for your help. I think we might be ok without logging and no BCC functions.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 6:36pm 26 June 2023 - π§πΆCaribbean Netherlands calbasi Catalonia
This line at settings.php do the trick in my hand:
$config['symfony_mailer.mailer_transport.sendmail']['configuration']['query']['command'] = ini_get('sendmail_path') . ' -t';