473,387 Members | 1,304 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

reading email body

106 100+
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
1 1314
pbmods
5,821 Expert 4TB
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

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

Similar topics

0
by: Dieter Beheydt | last post by:
Seems like a $rs-> EOF messes up the record set ? (using php 4.2.2 and MSSQL database) I try to read the ntext-field "body". THIS WORKS !! $dbMail = new COM("ADODB.Connection"); $dsn =...
1
by: Hayat | last post by:
Hello, I have a column (text datatype) and has to send an email as a text (not attachment) using cdonts. I am reading the data from text column storing in a varchar field and saying cdonts.body...
23
by: Graham F French | last post by:
Hello, I can read text files into my application, but I cannot read in msg files as they seem to be in a proprietry format. Is there anyway of converting it on the fly or is there an...
1
by: Richard Browne | last post by:
I have been developing a program that takes a database of email bodies and then displays them to the user in a similar way to Outlook Express would. The problem I'm having is showing only the...
5
by: Dennis Fazekas | last post by:
Greetings, I am creating a web form which will all the user to add an unlimited number of email addresses. Basically I have 3 buttons, "Add Another Email", "-" to remove, and a "Save" button....
1
by: j7.henry | last post by:
I am trying to pull specific data that is in a comma delimited file into a web page. So if my comma delimited file looks like: Name,Address,Zip Fred,123 Elm,66666 Mike,23 Jump,11111 I would...
0
by: Hamayun Khan | last post by:
Salam Reading email from mailserver return some extra character like 3D =20 = following is the mail body i read from mailserver through php code <HTML><HEAD>
6
by: Jason | last post by:
I would like to build a windows app or service that would read a .txt file and than put the contents of that file in an email and send off the email. WOuld that be very difficult?...how could this...
4
by: John | last post by:
Hi Outlook 2003 connected with exchange server. A user is logged in to the client pc. Is it possible to programmatically get the user's email address that is set on the 'Email Addresses' tab...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.