Pregunta

I need to track when the mail leave out my server to know possible issues:

  • Recipient inbox is full;
  • Recipient's server rejected
  • whatever..

The main problem is: how?

Currently I use a CentOS server. I can track only if my server receive and queue the mail to sent, but not the process of sending it self.

Is it a issue which could not be solved with PHP? Where should I start follow?

¿Fue útil?

Solución

As mentioned in the comments above, one way is to check your mail server's logs. These will show whether or not the receiving MTA accepted delivery, or if delivery failed for some reason.

Another way is to send the message from your PHP script using phpmailer, through a hosted SMTP server which provides you with delivery information, such as http://www.sendgrid.com or http://www.ultrasmtp.com.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top