|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Join Date: Feb 2005
Location: Biringkanaya
Posts: 306
Reputation: 43
|
To understand script
Currently I am using one of B&T scripts, I like it very much because it is simple and most of all it works great
I am just curious to understand what is the meaning of $headerArray[0] = $mailheader->subject; $from = $mailheader->from; from the script below, could anybody share knowledge? I am totally blank PHP Code:
|
|
|
|
|
#2 |
|
Older not wiser
Join Date: Nov 2003
Location: Calgary, AB
Posts: 2,472
Reputation: 205
|
|
|
|
|
|
#3 |
|
Join Date: Feb 2005
Location: Biringkanaya
Posts: 306
Reputation: 43
|
Mitchind,
I've tried to learn the link you give me, but dummy me I couldn't get what I want. I simply want the message content excluding the code like Code:
If I simply replace the lines that coming with the message content, when I try to send from another mail provider, as you can imagine, the lines are diferent. Can you help me? ![]() |
|
|
|
|
#4 |
|
Join Date: Feb 2005
Location: Biringkanaya
Posts: 306
Reputation: 43
|
Anybody familiar with knowledge about how php reads mail? I have been reading the documentation, but can't understand. I simply want the script to extract the mail and get body only without any other headers.
|
|
|
|
|
#5 | |
|
Older not wiser
Join Date: Nov 2003
Location: Calgary, AB
Posts: 2,472
Reputation: 205
|
Try:
Quote:
|
|
|
|
|
|
#6 |
|
Join Date: Feb 2005
Location: Biringkanaya
Posts: 306
Reputation: 43
|
Thank you, although I didn't understand the above instruction I finally found other way, I used
$body=imap_fetchbody($msgStream,$msgNumber,1); But my other problem is, whole emails are being read by mail server and it converts all japanese characters into ASCII code. Anything I can do to get the original contents? How can I set my email server to receive characters like japanese? Thank you for your time. |
|
|
|
|
#7 |
|
Join Date: Feb 2005
Location: Biringkanaya
Posts: 306
Reputation: 43
|
I did it! I use iconv function to convert the text into UTF and it shows the character I wanted.
Thank you for looking at this posting. |
|
|
![]() |
| Thread Tools | |
|
|