A message arrives in the mail, Address not found. <br> Sending email from prestashop via smtp
Come back
34

A message arrives in the mail, Address not found.
Sending email from prestashop via smtp

Error:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
This message was created automatically by mail delivery softwar
little the problem of the error that comes to the mail
I will describe a little the problem of the error that comes to the mail

The message comes only if your mail itself checks such letters for existence. That is, the check takes place on the side of the mail server. For example, like google mail, beget in which it checks for invalid mail.

To receive such messages you need to enable smtp mail in prestashop settings. If you use any other cms, then you need to look for the mail setting in which you can register the mail data, for further smtp work to send.

I have a program (library) Swiftmailer running, I am adding my mail settings to it so that I can continue to send letters to the user on cms prestashop. This cms has modules that can generate random mail and send it to it. And if the mail is incorrect for the user to whom I send, I receive a response letter about incorrect mail. For example, it might look like Figure 1.

Error, bad mail sent via smtp
(Figure 1. Error, bad mail sent via smtp)

To install such a check on invalid mail, there is a piece of php code that can check that such letters do not come:

Attention! There are times when the request does not work, in such cases I suggest writing a mail check 2 times :)

And also there is a link to a service (library) that checks such mail: https://github.com/maximishchenko/email_validator
created:
29.11.2022
updated:
29.11.2022
author:
admin
Tags
yandex metrika