Parsing the Mail Body - Open Source Mail Client (PHP or ASP.NET)

I have one interesting problem.

I have to parse the body of the letter (regex), get some data from the body of the mail, put this data in a mailing address and forward this letter to another address. This must be done immediately after receiving mail.

Is there a free WEBMAIL client that lets you write a custom filter, or should I make an app for this simple task?

What's the best open source email client (PHP or ASP.NET)?

0


source to share


4 answers


I use this method to parse scanned emails

http://pear.php.net/package/Mail_Mime

good results so far.



EDIT:

also http://www.xpertmailer.com/ has a very nice MIME library that can help you.

+1


source


To get immediate processing of emails without polling, this must be included in your mail delivery process (MDA, Mail Delivery Agent). In most Unix boxes, this can be done easily with procmail and formail (part of procmail).



If you have more control over your email program, tighter integration may be possible for better performance || improved error handling.

+1


source


I don't know of a freemailer where you can run such highly customizable filters.

Please include "open source email client" as your question does not indicate the need for a web interface.

As a possible solution, you could write a small script that a) collects mail every x minutes (cronjob) and b) applies your filter. This works in many free php web hosts, there are also some free cronjob services ( first google hit ) that can call your script every x minutes.

Zend_Mail and possibly PHPMailer are nice mail libraries.

+1


source


Have a look at Bugtracker.net they implement a pop3 client that can receive and process incoming emails (which in their case are stored as error cases) to handle the email content they use SharpMime .

0


source







All Articles