Hi:
For backup purpose, I want to export some of my emails into eml files.
Using
parse_email_parts($mbox, $emailid, $structure, 0, $message, $html_message, $attachments, $found_html), I get $message, which is the email with the headers and the body.
When I save $message into an eml file, I can read the email fine but the attachments are missing.
I can extract individually the attachments but what I want is having them part of the eml file.
How can I fix that?
Thanks.
For backup purpose, I want to export some of my emails into eml files.
Using
parse_email_parts($mbox, $emailid, $structure, 0, $message, $html_message, $attachments, $found_html), I get $message, which is the email with the headers and the body.
When I save $message into an eml file, I can read the email fine but the attachments are missing.
I can extract individually the attachments but what I want is having them part of the eml file.
How can I fix that?
Thanks.