tags:

views:

54

answers:

3

Can anyone suggest the methods I could use...

I m on shared hosting now (cpanel)... I have access to perl modules, ruby, (No idea how they work)

A: 

PEAR_Mail_MimeDecode class from Pear. Is the real solution.

Possible Duplicate:
http://stackoverflow.com/questions/2994493/process-received-email-attatchment-with-php

JapanPro
@shamittomar: why editing an answer saying the question is a possible duplicate? Just vote to close, or add a comment.
Wrikken
@Wrikken, I just fixed the formatting issues in the answer. The `Possible Duplicate` was already given by the original answerer (JapanPro).
shamittomar
@Wrikken, Also, this looks like a possible duplicate only ..... not exact duplicate. Because in the other question, only attachments are processed but here he wants to process everything.
shamittomar
Wrikken
+1  A: 

The IMAP extension is used for that. Either by having a real mailbox you check, or by letting the mailserver pipe emails to your your script & parsing the parts of the email with the provided funstions.

Wrikken
umm.. I just want to pipe emails (im not saving any of it) .... process it via php...
Suhas
need a little help on functions that i could use to catch emails... i am kinda new to this..
Suhas
A: 

If you are a on a shared hosting system it is possibly easiest to let someone like http://cloudmailin.com or http://smtp2web.com/ send the email to your app via a webhook.

You will then need to use something like Mail_MimeDecode to actually parse the message you receive and extract the content you want to use.

Steve Smith