By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,339 Members | 1,649 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,339 IT Pros & Developers. It's quick & easy.

reading email body

100+
P: 106
Hello !

I'm looking for a script which allows me to read emails and attachment
from a pop server (then I'll save the email's text in a db and the
attachments on the server).

So I have found this article: http://www.phpit.net/article/read-email-php-pop3/

....
$email = $pop3->get_mail($i); // how to get the email
....

parsing for this mail I get the following

--0-264370578-1185955254=:82794
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

hama@h1brecruiting.comhama@h1brecruiting.comhama@h 1brecruiting.comhama@h1brecruiting.comhama@h1brecr uiting.comhama@h1brecruiting.comhama@h1brecruiting .comhama@h1brecruiting.comhama@h1brecruiting.comha ma@h1brecruiting.comhama@h1brecruiting.comhama@h1b recruiting.comhama@h1brecruiting.comhama@h1brecrui ting.comhama@h1brecruiting.comhama@h1brecruiting.c omhama@h1brecruiting.comhama@h1brecruiting.comhama @h1brecruiting.comhama@h1brecruiting.comhama@h1bre cruiting.comhama@h1brecruiting.com

---------------------------------
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
--0-264370578-1185955254=:82794
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<A href="mailto:hama@h1brecruiting.comhama@h1brecruit ing.comhama@h1brecruiting.comhama@h1brecruiting.co mhama@h1brecruiting.comhama@h1brecruiting.comhama@ h1brecruiting.comhama@h1brecruiting.comhama@h1brec ruiting.comhama@h1brecruiting.comhama@h1brecruitin g.comhama@h1brecruiting.comhama@h1brecruiting.comh ama@h1brecruiting.comhama@h1brecruiting.comhama@h1 brecruiting.comhama@h1brecruiting.comhama@h1brecru iting.comhama@h1brecruiting.comhama@h1brecruiting. comhama@h1brecruiting.comhama@h1brecruiting.com">h ama@h1brecruiting.com<U><FONT
color=#0000ff>hama@h1brecruiting.comhama@h1brecrui ting.comhama@h1brecruiting.comhama@h1brecruiting.c omhama@h1brecruiting.comhama@h1brecruiting.comhama @h1brecruiting.comhama@h1brecruiting.comhama@h1bre cruiting.comhama@h1brecruiting.comhama@h1brecruiti ng.comhama@h1brecruiting.comhama@h1brecruiting.com hama@h1brecruiting.comhama@h1brecruiting.comhama@h 1brecruiting.comhama@h1brecruiting.comhama@h1brecr uiting.comhama@h1brecruiting.comhama@h1brecruiting .comhama@h1brecruiting.com</A></FONT></U><p>
<hr size=1>Fussy? Opinionated? Impossible to please? Perfect. <a href="http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ">Join Yahoo!'s user panel</a> and lay it on us.

--0-264370578-1185955254=:82794--

where the original message is


hama@h1brecruiting.comhama@h1brecruiting.comhama@h 1brecruiting.comhama@h1brecruiting.comhama@h1brecr uiting.comhama@h1brecruiting.comhama@h1brecruiting .comhama@h1brecruiting.comhama@h1brecruiting.comha ma@h1brecruiting.comhama@h1brecruiting.comhama@h1b recruiting.comhama@h1brecruiting.comhama@h1brecrui ting.comhama@h1brecruiting.comhama@h1brecruiting.c omhama@h1brecruiting.comhama@h1brecruiting.comhama @h1brecruiting.comhama@h1brecruiting.comhama@h1bre cruiting.comhama@h1brecruiting.com

from different mailserver different format mail body is extracted

Any help for reading exact the message.

Thanks a lot
Aug 3 '07 #1
Share this Question
Share on Google+
1 Reply


pbmods
Expert 5K+
P: 5,821
Heya, Hamayun.

What do you want your code to do? Give an example.
What is your code doing that you don't want it to do? Give an example.
What is your code *not* doing that it is supposed to? Give an example.
Aug 5 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.