Forum Moderators: coopster

Message Too Old, No Replies

Email Piping and PHP

Email Piping PHP Linux

         

juliebelle

11:05 am on Nov 27, 2004 (gmt 0)

10+ Year Member



I want to know how i can process an email message using PHP. the term is known as Email PIPING but i dont have a clue how to do it or how it works.

what i want basically is a way to get email messages one by one form the mail server inbox and process them.

assume i am using a linux platform.

hope the explanation was clear enough.

Julie

dcrombie

11:43 am on Nov 27, 2004 (gmt 0)



To 'pipe' an email to PHP you need to use some shell-scripting - I'd start by looking at procmail unless someone has a better idea.

juliebelle

11:49 am on Nov 27, 2004 (gmt 0)

10+ Year Member



thanks for your reply

what does shell scripting involve? i think PHP can be used for shell scripting or only Perl must be used. i'm not sure.

jatar_k

7:26 pm on Nov 27, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



dcrombie is right, procmail is good stuff

it is used to process emails that arrive to certain addresses, we have used it to process emails and insert them into a phpbb forum for customer servoce. It is actually quite a cool program.

juliebelle

2:24 am on Nov 28, 2004 (gmt 0)

10+ Year Member



yes. what i like to do is have a catch all email address and process emails according to the username

for example joe@mydomain.com will be assigned to joe
mary@mydomain will be assigned to mary

What i really wish to do in the end is process the email header and put header info in a mySQL database, but the piping is the challenging part cause i never worked with anything like that before.

I will have a look at procmail..

thanks jatar_k