I’ve had a lot of request for more posts about email piping, specifically filtering the email body and obtaining just the reply content. It’s taken me a while to get around to writing this even though the code is about 6 months old. If you’re new to email piping, check out some of my previous posts: learn the basics , isolate the email headers , save attachments and process bounce emails . Now lets get down to biz.
Another great use for email piping is parsing bounce emails. This is very useful if you have a mailing list and need to remove any invalid or old email addresses. Sending emails to invalid addresses can land you on domain blacklists for possible spamming so it is definitely beneficial to trim any mailing lists you send out to.
Back to the world of email piping. In my third instalment we’re going to look at saving attachments in emails sent to the piping script. If you need to get caught up, read through my and .
In my first post, , about piping email with PHP, I detailed how to set up qmail to send an email to a PHP script, read the email, output it. Now that you have the basics down, we can get into more email processing with PHP.