retrieve email/attachment?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bsides
Forum Newbie
Posts: 2
Joined: Thu Mar 20, 2003 12:17 am

retrieve email/attachment?

Post by bsides »

Hi All,

I want to be able to retrieve emails from a mail server and NOT retrieve attachments. Is there any way this can be done?

My aim here is to be able to provide a service to our clients whereby we check their mail box(es) and forward any sender/subject/body via SMS (up to 160 chars of course). How can I do this without the overhead of retrieving large attachements?

Does anyone have any suggestions?

The only thing I can think of is limiting the number of lines to get for each email, but I was wondering if anyone knows of a superior approach.

TIA,

Marcus
http://www.pulsesms.com
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you can probably parse the stream as it comes in, and stop reading once you get to the attachments. That's the only real way I can see it working.. but I haven't tried that, either way.
Post Reply