Question

I want to keep track of users who assign emails as spam, then remove them from the mailing list, or just put notification to 0 for them, so they don't get emails anymore.

Mail feedback loops help you do that, but they return the message with the message id only, they do not tell you which email address it was from.

http://www.unlocktheinbox.com/resources/feedbackloops/

So I was wondering, how can I retrieve the message id from the mail which is sent with the PHP mail() function?

Was it helpful?

Solution

You can't get the message ID for mail sent via the mail() command. That message ID is generated by sendmail, or whatever else is downstream.

You would need to use something else to generate your mail with, such as PHPMailer, or one of the many other alternatives.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top