I wondered how can I search for a particular word in all inbox e-mails with PHP IMAP? This search might be a regexp performed over the message’s body…
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would do the following..
Connect to the the inbox:
Check out the docs for the format of $host etc.
Loop around each message:
EDIT
If you want forward a specific email, you could use imap_mail() to send it on. See above.