Phpmailer how to receive replies that email has not been delivered

Asked

Viewed 63 times

0

I believe people don’t understand what I want to know.

In fact I have already found a solution, which I am testing and I will describe it here.

I don’t care if the email was sent successfully and I don’t care if the recipient opened the email. This I already do in the system I am developing and works perfectly well.

What I need to know is whether the email was accepted by the recipient’s server or was refused. Thus marking it as a wrong and invalid email.

I started using this extension of Phpmailer to do the job (Phpmailer-BMH : Bounce Mail Handler that will check this situation and give me a callback. As I said, I’m still testing and as soon as I get the results, I’ll be back to demonstrate the solution I’ve made.

Good afternoon, everyone,

I am in need of your help. The question is this: I am creating for a company an automated email sending system. It takes a list of customers that is in the database and sends emails. No problem.

The customer list is updated every month, with new customers, via csv. They generate this csv from their system and send me, I work it here and do the insertion in the database. blz.

The point is that I have many emails that are not valid, for various reasons, since they are misspelled, because there are no more and etc. And whenever I import again, there they are again.

I was wondering if there’s any way to get the response from the e-mail that it wasn’t delivered, so I could use the email in question to activate a flag, type Blacklist for when to import the system to skip this or even at the time of sending.

I use Phpmailer for sending and a local server, but I can pass the system to an online server with domain.

How can I get this reply that the email was not delivered?

Thanks!!

  • There is a way to check if the recipient has opened the email. I use this feature to delete emails that do not open sent emails.

  • Take a look at AWS’s SES service.

1 answer

-1

With the if ($mail->send()) { you can check if it was sent to the protocol successfully, but if it was delivered or not, then I guess it is already with the protocol itself, would have to check in the authentication email if returned any message or not.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.