Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

parse email with php (LDA dovcot, procmail)

Using the mailparse to extract the data or use the read in nd process the input buffer one line at a time.  A better and simpler approach depending on your mail server and whether it is passing the incoming mail through an LDA dovcot, procmail. The from and the body can be extracted and presented to your php with the from and subject as arguments to your script and the body of the message as input on stdin.



I am looking to parse email with php

how would I do this
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

thank you

the first answer was about email
and the second answer was about asking questions on experts-exchange


I have a related question based on the second answer

https://www.experts-exchange.com/questions/27993920/parse-email-with-php-LDA-dovcot-procmail.html