|
|
 Alan Fullmer - 2007-09-18 07:15:53 - In reply to message 30 from Vlad Mereuta
Not to burst your bubble, but try this as a message.
Create a message (with Outlook and Thunderbird).
1. Paste an image into the email. (objective: CID Image)
2. Take another image and attach it like a normal attachment.
3. Create text, so there is a body.
send message as HTML AND TEXT.
Notice your example doesn't parse the CID portion.
I also noticed that Outlook botches something in there. The Parser returns decoded binary data into the body stream as the CID, rather than writes it to a file as an inline attachment. Then the body becomes a jumbled mess.
FYI.
 Manuel Lemos - 2007-09-18 08:10:55 - In reply to message 31 from Alan Fullmer
I am not sure what you mean. Can you paste a minimal example that demonstrates what you are experiencing?
 Alan Fullmer - 2007-09-19 22:02:47 - In reply to message 32 from Manuel Lemos
Two parts, First,I may have been premature in suggesting the binary type data. Please ignore.
Second in response to the script. You may want to change your line to read:
if ($type == 'multipart/alternative' || $type == 'multipart/related')
I have found that I get some that say related as well. Thoughts anyone?
 Jean Michel Marca - 2009-02-03 11:13:54 - In reply to message 29 from Manuel Lemos
Morning Manoel Lemos,
I wonder how do I get data from the body without having to write to files. RETURN to string
 Manuel Lemos - 2009-02-03 16:56:56 - In reply to message 34 from Jean Michel Marca
If you do not use either the SaveBody nor SkipBody parameters, it returns the body parts as strings.
Just keep in mind that if message body parts are too large, storing body parts in strings may exceed PHP memory limit configured in php.ini .
 Apurba - 2009-02-25 20:07:38 - In reply to message 1 from Lee Willmann
Only could I say, its a very useful class dedicated by you.
Thanks again.
My question: How can I have the outputs to the original names[attachments, message etc.]
 Manuel Lemos - 2009-02-26 02:48:05 - In reply to message 36 from Apurba
In the decoded array structure there is an entry named FileName for each file part attached to the message.
 Apurba - 2009-02-26 04:46:03 - In reply to message 37 from Manuel Lemos
WOW Its relally a quick reply. Thanks..
Q:While writing Output Files in the state 'MIME_MESSAGE_GET_BODY', the path was assigned with '$this->body_part_number'. Do I have to use
$decoded['FileName'] in the place of $this->body_part_number. to get the original file name as output?
----------------------------------------------------------------------
AS I USED ...
$path = (strlen($parameters['SaveBody']) ? ($parameters['SaveBody'].(strcmp($parameters['SaveBody'][strlen($parameters['SaveBody'])-1], $directory_separator) ? $directory_separator : '')) : '').$decoded['FileName'];
with the
$decoded['BodyFile'] = $path;
$decoded['BodyPart'] =$decoded['FileName'];
$decoded['BodyLength'] = 0;
It seems I have done something wrong here..
What is your sugesstion here?
 Manuel Lemos - 2009-02-26 04:54:32 - In reply to message 38 from Apurba
Don't change the class code or it will be hard for me to help you.
Just use the array of parsed messages returned by the class. It returns all you need. If you want the file name, just use the FileName entry.
 Apurba - 2009-02-26 05:26:00 - In reply to message 39 from Manuel Lemos
WOW thats cool .. for getting this kind of quick help.
Q: Is it possible setting the original attachment file names as output file names from the class you have now?
I need the output filenames as their original names instead of 1,2,3,4... being stored in D:/tmp now.
Thanks for your replies.. again
|