Symfony's Mailer component helps sending emails and provides integration with the most popular mailing services.
Questions tagged [symfony-mailer]
75 questions
1
vote
0 answers
Symfony Mailer: Expected response code "250" but got empty code
We started getting error Expected response code "250" but got empty code. when sending emails via Symfony Mailer on Laravel 10 and Mailchimp.
There are lots of similar questions and all of them were related to invalid credentials/not refreshed…

Gino Pane
- 4,740
- 5
- 31
- 46
1
vote
1 answer
Yii2 Symfony mailer not working with AWS SES
Recently I migrated my application mailer from Swiftmailer to Symfony due to deprecation notification from Yii.
I use AWS SES services to send email through SMTP, which was working perfectly with Swiftmailer but after migration, no mails are…

MIK
- 876
- 1
- 16
- 37
1
vote
0 answers
Dynamically add uploaded file(s) in Symfony/Mailer
I'm using the Symfony Mailer package to upload files via email. I'm using PHP 8.2 and v6.2 of symfony/mailer. My form allows users to add a maximum of 4 files for upload. The docs on file attachments show how this can be done statically but I need…

Mark
- 778
- 2
- 11
- 21
1
vote
1 answer
Laravel 10 test email connection with EsmtpTransport class
I am trying to test a email connection with a user given configuration but I can't seem to find a way to test the connection. I get an error everytime I try to test it with a TLS encryption. If I change the port to a SSL one and the encryption to…

Kaizokupuffball
- 2,703
- 8
- 38
- 58
1
vote
2 answers
Why can't I see any e-mail coming in into my mail-catcher
it's my first time using mail catcher and I was wondering why my code runs through for sending an e-mail but I don't see anything in my mail hog / mail catcher.
Here is how I send my e-mail
Config:
###> symfony/mailer…

MewTwo
- 465
- 4
- 14
1
vote
1 answer
Symfony 6 mailer DSN with SMTP doesn't send mails
I'm trying Symfony 6 Mailer with different SMTP servers and none of them is working.
The messages are queued but not sent. I tried from different servers to discard a firewall or port issue.
There are no log messages or exceptions, so I'm quite…

K. Weber
- 2,643
- 5
- 45
- 77
1
vote
1 answer
Changing content type of mail in Laravel 9
I am trying to send calendar emails through Laravel, I had this working on Laravel 7 with the below code but, on Laravel 9 setContentType has been removed and setbody has been changed to html or text (meaning you can't set the body content type to…

cra74ig
- 37
- 5
1
vote
1 answer
htmlTemplate don't work for symfony/mailer
I'm using the "symfony/mailer": "6.1.*" package in a Symfony application to send the mails.
My function use HTML template like the doc:
use Symfony\Bridge\Twig\Mime\TemplatedEmail;
public function index(MailerInterface $mailer,Exception…

mbyou
- 104
- 1
- 7
1
vote
0 answers
Symfony Mailer, MessageEvent Never fired - 5.4 LTS
i'm trying to write a log when my app in symfony 5.4 send an email.
But it seems that the MessageEvent is never fired.
In the console the EventListener seem to be registered correctly:
# bin/console debug:event-dispatcher
Registered Listeners…

Bellu
- 2,575
- 2
- 22
- 29
1
vote
1 answer
Laravel 9 Symfony mailer not working - mail sent from app but not received in gmail
In Laravel 8 I was able to send an email verification email. And now in Laravel 9 email sent message appears but I don't receive an email.
I have used my correct mail host provided by domain with port, username, and password as previously and…

Code Flow
- 209
- 3
- 15
1
vote
1 answer
Laravel 9 - Infomaniak : Expected response code "250" but got code "550", with message "550 5.7.1 Sender mismatch"
I hope I'm not in the wrong place for my problem, but I haven't found a solution for a week.
I designed a new web application under Laravel 9 (now using Symfony Mailer).
The problem is sending emails from accounts provided by Infomaniak.
Shipping…

Boss COTIGA
- 893
- 7
- 15
1
vote
1 answer
disable transport fallback when sending emails
I have two transports, one for general emails and the other for noreply emails because of huge number
mailer.yml:
framework:
mailer:
transports:
main: '%env(MAILER_DSN)%'
noreply: '%env(MAILER_DSN_NOREPLY)%'
When…

pop_up
- 1,451
- 2
- 18
- 35
1
vote
0 answers
Error Mailer : dependencies class using my autoload instead of composer class
im trying to use symfony/Mailer depencies with composer on my project , the problem i have my own autoload in my class but when i try to send a mail there is this error :
Warning:…

projet senforage
- 11
- 2
1
vote
1 answer
Symfony/Mailer 6.x with antiflood plugin?
In want replace deprecated SwiftMailer v6.2.5 with new Symfony/Mailer v6.x. SwiftMailer have a AntiFlood Plugin
$mailer = new Swift_Mailer($transport);
$mailer->registerPlugin(new Swift_Plugins_AntiFloodPlugin(100, 5));
I can't find this for…

user706420
- 1,167
- 3
- 13
- 23
1
vote
2 answers
How to sign outgoing emails in Laravel 9 with a DKIM signature
Please explain conception how to sign outgoing emails in Laravel 9 with a DKIM signature. Laravel 9 uses Symfony mailer. I'm trying to proceed by this way:
class ContactForm extends Mailable
{
use Queueable, SerializesModels;
public…

HostBrook
- 13
- 3