F
F
freeeeez2021-12-17 08:57:04
Mail server
freeeeez, 2021-12-17 08:57:04

Why doesn't Laravel send emails via SMTP to addresses with two dots or +?

Previously, I sent the driver to Laravel via mail, everything was ok.
When I changed to smtp, letters stopped coming to some boxes.
In gmail, the address [email protected] and [email protected] are identical, also [email protected] also corresponds to the [email protected] mailbox, all these mailboxes collect mail in one place.
So, if there is one dot in the address, if two or more are already gone, it also does not send to boxes with a plus.
The provider tells him these letters do not reach, respectively, Laravel blocks them somewhere, where to dig? Who faced?

MAIL_DRIVER=smtp
MAIL_HOST=smtp.timeweb.ru
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=pass
MAIL_ENCRYPTION=ssl

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2021-12-23
@freeeeez

Laravel has absolutely nothing to do with it: I have about 7 exploited projects on Laravel of different versions (from 5.5 to the latest 8.x - it was updated yesterday) and different hostings (not timeweb) - there are no described problems.
It's either in the smtp server, or in corrupted framework files, or in some packages added to Laravel additionally. Whether the problem is related to the smtp server is very easy to check: send a test email directly with php mail(). If it's gone - see what you have with the files/packages or in the code. If the problem reproduces, the smtp server or the php configuration is to blame.

A
Alexander Falaleev, 2021-12-17
@suffix_ixbt

https://laravel.com/docs/8.x/validation#rule-email
and additionally:
https://stackoverflow.com/questions/58725526/larav...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question