Category: swiftmailer

Swiftmailer and Symfony Messenger not working with AMQP and rabbitmq within docker

I am desperate with a task. I bassicly tried everything and can’t get to solution. I am trying to send mail with Swiftmailer asynchronously by using the SymMessenger, AMQP, rabbitmq with docker. Everything is is installed, but within API platform…

Mail not sent with MailCatcher

I have installed MailCatcher in my Symofny 4.2 project. I have configured it in my .env file: MAILER_URL=http://127.0.0.1:1080/ And in swiftmailer.yml swiftmailer: url: ‘%env(MAILER_URL)%’ spool: { type: ‘memory’ } parameters: mailer_transport: smtp mailer_host: 127.0.0.1 mailer_user: null mailer_password: null mailer_port: 1025…

How can I make my email username comply with RFC 2822 using swiftmailer in Symfony?

I try to setup the email configuartions for swiftmailer in services.yaml parameters: mailer: smtp_host: ‘abc123.webthing.myhost.de’ smtp_port: 587 smtp_cert: ‘tls’ smtp_username: ‘ab12345-laura’ smtp_password: ‘secret’ This is the mailer service: <?php /** * Service that can be used to send email using…

How do I change Swift Mailer configuration to spool emails when there is no config file when installed from composer

I have installed Swift Mailer using Composer, and it’s all set up and working well. But now I want it to use a spool rather than sending emails immediately. The little documentation I can find says I need to specify…

Swiftmailer pdf attachment from snappy bundle

I have an function downloadPdf($id, KnpSnappyPdf $snappy, Request $request). This function downloads a pdf with information from objects everything works fine. This is the function: public function downloadPdf($id, KnpSnappyPdf $snappy, Request $request): Response { //search id $workOrder = $this->getDoctrine()->getRepository(WorkOrders::class)->find($id); //data…