php - Get 'To' field value from imap_headerinfo function or imap_search function -
i have following code value 'to', output array
$header=imap_headerinfo($inbox,'18'); echo $header->to; second use imap_search function search through email & find desired string in email body. of email clients use different body, let's yahoo. actual email in outlook or other client looks this:
the mail system <dkkfdjhfhjd@gmail.com>: host gmail-smtp-in.l.google.com[173.194.77.26] said: 550-5.1.1 email account tried reach not exist. please try 550-5.1.1 double-checking recipient's email address typos or 550-5.1.1 unnecessary spaces. learn more @ 550 5.1.1 http://support.google.com/mail/bin/answer.py?answer=6596 c10si1356788oed.181 - gsmtp (in reply rcpt command) however when try print by:
$message = imap_fetchbody($inbox,'18',1); echo $message; it prints this:
the mail system : host gmail-smtp-in.l.google.com[173.194.77.26] said: 550-5.1.1 email account tried reach not exist. please try 550-5.1.1 double-checking recipient's email address typos or 550-5.1.1 unnecessary spaces. learn more @ 550 5.1.1 http://support.google.com/mail/bin/answer.py? answer=6596c10si1356788oed.181 - gsmtp (in reply rcpt command) i cannot email address well. can tell decent method email address of users delivery got failed? headers or else? need badly, can help?
the array array of addresses.
the best way address failed @ bodyparts, find 1 content-type message/delivery-status, , parse that.
Comments
Post a Comment