473,803 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

reading email body

106 New Member
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=:827 94
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

hama@h1brecruit ing.comhama@h1b recruiting.comh ama@h1brecruiti ng.comhama@h1br ecruiting.comha ma@h1brecruitin g.comhama@h1bre cruiting.comham a@h1brecruiting .comhama@h1brec ruiting.comhama @h1brecruiting. comhama@h1brecr uiting.comhama@ h1brecruiting.c omhama@h1brecru iting.comhama@h 1brecruiting.co mhama@h1brecrui ting.comhama@h1 brecruiting.com hama@h1brecruit ing.comhama@h1b recruiting.comh ama@h1brecruiti ng.comhama@h1br ecruiting.comha ma@h1brecruitin g.comhama@h1bre cruiting.comham a@h1brecruiting .com

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

<A href="mailto:ha ma@h1brecruitin g.comhama@h1bre cruiting.comham a@h1brecruiting .comhama@h1brec ruiting.comhama @h1brecruiting. comhama@h1brecr uiting.comhama@ h1brecruiting.c omhama@h1brecru iting.comhama@h 1brecruiting.co mhama@h1brecrui ting.comhama@h1 brecruiting.com hama@h1brecruit ing.comhama@h1b recruiting.comh ama@h1brecruiti ng.comhama@h1br ecruiting.comha ma@h1brecruitin g.comhama@h1bre cruiting.comham a@h1brecruiting .comhama@h1brec ruiting.comhama @h1brecruiting. comhama@h1brecr uiting.comhama@ h1brecruiting.c om">hama@h1brec ruiting.com<U>< FONT
color=#0000ff>h ama@h1brecruiti ng.comhama@h1br ecruiting.comha ma@h1brecruitin g.comhama@h1bre cruiting.comham a@h1brecruiting .comhama@h1brec ruiting.comhama @h1brecruiting. comhama@h1brecr uiting.comhama@ h1brecruiting.c omhama@h1brecru iting.comhama@h 1brecruiting.co mhama@h1brecrui ting.comhama@h1 brecruiting.com hama@h1brecruit ing.comhama@h1b recruiting.comh ama@h1brecruiti ng.comhama@h1br ecruiting.comha ma@h1brecruitin g.comhama@h1bre cruiting.comham a@h1brecruiting .comhama@h1brec ruiting.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.yaho o.com/gmrs/yahoo_panel_inv ite.asp?a=7 ">Join Yahoo!'s user panel</a> and lay it on us.

--0-264370578-1185955254=:827 94--

where the original message is


hama@h1brecruit ing.comhama@h1b recruiting.comh ama@h1brecruiti ng.comhama@h1br ecruiting.comha ma@h1brecruitin g.comhama@h1bre cruiting.comham a@h1brecruiting .comhama@h1brec ruiting.comhama @h1brecruiting. comhama@h1brecr uiting.comhama@ h1brecruiting.c omhama@h1brecru iting.comhama@h 1brecruiting.co mhama@h1brecrui ting.comhama@h1 brecruiting.com hama@h1brecruit ing.comhama@h1b recruiting.comh ama@h1brecruiti ng.comhama@h1br ecruiting.comha ma@h1brecruitin g.comhama@h1bre cruiting.comham a@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 1338
pbmods
5,821 Recognized Expert Expert
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
1215
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 = "DRIVER={SQL Server}; SERVER={--------};UID={-----};PWD={-------};
1
2673
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 = . This way I can send email to as a text format. Now, my problem is when length of data is greater than the 8000 chars it truncates the rest of the data.......and email I send is a truncated email.......loosing imporatnt data.
23
25501
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 interpretation method? Thanks
1
1244
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 message of the email and not some of the unnecessary jargon of the message body. Does anyone know of a really simple and clean way to display only the message of the email body.
5
3736
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. When the user clicks the "Add another email" it will call a client side JavaScript function, add_email, which will dynamically add a new set of controls to the webpage using the innerHTML method. It appears to work perfectly fine in the browser. The...
1
2593
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 like to be able to read this data and put each row into a variable? so I could display the values in a web page where I want.
0
1549
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
2222
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 be done?
4
1842
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 of the exchange server? Thanks
0
9703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9565
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10550
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10317
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7604
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2972
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.