Forum Moderators: coopster

Message Too Old, No Replies

php receive and parse email.

using php to receive and parse email.

         

tommytx

3:47 am on Jul 27, 2005 (gmt 0)

10+ Year Member



Can anyone guide me to a good place to get info on using php to receive the email, parse it for something like 0502473 and 0503467 etc in the subject line and then send back a response to the sender of the email based on all the numbers in the body with 050 sequence etc.

I have looked at a lot of articles, but they all seem too complicated for me to understand. I don't have a problem with sending email, just receiving. I would set up a special email box to receive this mail and no other mail so every email received would be looking for a response depending on the 050 series numbers in the subject line.

So... bottom line is I need to know how to receive and parse an incoming email and I can handle the rest. I would even buy a commercial program if it would work and could be called by a php program.

Thanks in advance.
Tom

dcrombie

11:23 am on Jul 27, 2005 (gmt 0)



First you need something like procmail [procmail.org] to make the link from an incoming email to calling a php script.

ergophobe

5:40 pm on Jul 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



search on "PHP and incoming email" If that doesn't work, remove the quotes. There's a nice sitepoint article on the topic.