Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

How do I parse incoming emails for content?

How do I parse incoming emails for content?


I have orders being placed, and need to be able to scan the emails, and extract certain information from them. Then, I will add these details to a database, for processing.


I have no idea of where to begin.


Suggestions?


Thanks

ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

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 curiouswebster

ASKER

This is for my business. So, I need it to be easy to run on a WordPress server.

The code which generates images, based on the database record addition to the database, is written in PHP.

We need to reroute to our WP server, which would scrape the email and add it to to MySQL. Then, we would run a process that gets notified after an addition to that specific table.

So, we need to learn about re-routing emails, and what kind of email service can enable this. (Does ProtonMail offer this? It seemed doubtful).

So, we are free to find a new email service, whatever you suggest.

Then, what process to we run on our server. Is there a WP plugin you can suggest?

Once we have our hands on the email, what technologies scrape the email?

It would be a known format. A repeatable order format.

Thanks for the help.

SOLUTION
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
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 skullnobrains
skullnobrains

feel free to ask about implementation details in this thread. i will be happy to help.

if you go for the script, beware the above is a little too trivial. you probably need to handle rset properly and you definitely need to close the connection on error. also note it does not handle parallelism which is quite trivial to deal with using forking and a little harder with a select loop. it should not be needed in this case, though.

most scripting languages feature net:smtpd packages which i did not demonstrate above and will often be more robust and easy to implement in other scripting languages.