0

Using PHPmailer how may I be able to know whether a sent mail delivered to the user or not. Actually I want to know the delivery status of the sent mail using PHP. Is it possible? Please let me know.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
  • Possible duplicate of [PHPMailer, return SMTP code](http://stackoverflow.com/questions/36716144/phpmailer-return-smtp-code) –  Sep 03 '16 at 10:23

1 Answers1

0

You could try something like this:

if($mail->send()) {
  // Do something if email sent successfully
}

As I understand it, it would depend on your email service. If you are using something like MailGun's API, you could get a delivery status on that, but if you are just using a standard SMTP server, checking if the email sent successfully is about as far as you an go.

simonlehmann
  • 852
  • 1
  • 10
  • 27