问题
I need to check whether mail is bounced mail or not.
There one library available which can do this. http://sourceforge.net/projects/bmh/
But my problem if as below:
- Above library will open the actual mail box and fetch the bounced mails from it.
- But in my case I have one text file in which source of the full email with header also. And I need to check for that particular mail not whole mailbox.
- So how can I use that library with the normal text file, they have a functionality to check EML files stored in local drive but I don't want to use that, I just have to read the text from text file.
回答1:
The email gets bounced to a mailbox, so you can't detect that it has bounced without reading that mailbox. You might be able to read your mail software's data files directly, but there is no guarantee your mail software won't change how it stores your files.
来源:https://stackoverflow.com/questions/4243100/check-for-bounced-mails-with-php