Answer the question
In order to leave comments, you need to log in
Mail doesn't work. Laravel. How to fix?
Good afternoon.
I ran into a problem, please help.
Sending mail notifications created by templates using laravel does not work.
Not many details:
I have created a project, installed laravel, connected templates for authorization. Activated email verification. Incorrect data was entered into env, which gave an error. After entering the correct ones, cleared the cache. After everything works, the letters are sent. But, after some time (about an hour or two), the letters stop being sent, while there are no errors, the code is executed, a token, for example, is created to recover the password. The inscription about the successful sending of the link to the email is displayed, but there are no letters. If you set the log driver in the settings, the log file is not updated, i.e. logs are not written. Cache, cleaned configs, performed composer dump-autoload, everything that Google offered, in other words, did everything.
Most importantly, after the letters have stopped being sent, if incorrect data is specified in the env, then the error is not raised already, but simply goes through the procedure, as if the letter was sent. Tried more than one mail server. Used only smtp.
When creating a new project on laravel, the same thing happens, the mail works for an hour or two, then it stops. Please help, I'm very tired of this.
Answer the question
In order to leave comments, you need to log in
the described symptoms are most similar to the fact that someone is fighting with you as a spammer.
write down and post the entire connection log to the mail server. Starting with "Connected to"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question