Answer the question
In order to leave comments, you need to log in
How to send a SwiftMailer email via sendmail in Symfony 4.4 (OpenServer)?
For testing, sending emails to Symfony 4.4 / SwiftMailer via sendmail on OpenServer is very necessary. Tried different settings but doesn't help.
Option 1 (works on hosting)
.env
MAILER_URL=sendmail://localhost
/config/packages/swiftmailer.yaml
swiftmailer:
url: '%env(MAILER_URL)%'
swiftmailer:
default_mailer: default
mailers:
default:
transport: sendmail
command: 'C:\OSPanel\modules\sendmail\sendmail.exe -t'
timeout: 20
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question