How to read HTML email text?

This is a discussion on How to read HTML email text? within the PHP Language forums, part of the PHP Programming Forums category; I've done a couple of hours web-searching without turning up many answers so far, and I guess I ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-17-2003
SimonC
 
Posts: n/a
Default How to read HTML email text?

I've done a couple of hours web-searching without turning up many
answers so far, and I guess I could figure it out (eventually) from
the MIME format, but here goes with my question...

I don't have any problems reading text emails, but can anybody direct
me to some PHP source code that will read (the text inside) an HTML
email, specifically the "From", "Subject" and especially the message
body?

I would like the code to be able to differentiate between (i.e. know
that it is) a text or an HTML email, and I would like the code to
ignore any attachments.

I don't expect the incoming email to have any (or large) attachments,
but I hope that any code samples can handle the possible case of big
attachments coming along for the ride.

Incidentally, if I did (not this time) want to handle large
attachments, can PHP and/or servers handle megabytes of data being
read into a string variable through fread()? I'm just getting into
this stuff, and not sure of what areas would be a resource and/or
performance hog.

Thanks in advance,

Simon.
Reply With Quote
  #2 (permalink)  
Old 10-17-2003
Ian P. Christian
 
Posts: n/a
Default Re: How to read HTML email text?

SimonC wrote:

> I've done a couple of hours web-searching without turning up many
> answers so far, and I guess I could figure it out (eventually) from
> the MIME format, but here goes with my question...
>
> I don't have any problems reading text emails, but can anybody direct
> me to some PHP source code that will read (the text inside) an HTML
> email, specifically the "From", "Subject" and especially the message
> body?
>


http://pear.php.net

Kind Regards,

Ian P. Christian
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0