I want to attach a MTA report (not delivered bounce mail) to an email, but what is the correct MIME type?
I fetch the full body of the MTA report with
$body = imap_fetchbody($this->Mailbox->stream, $this->header->uid, '', FT_UID);
But what is the correct MIME type for attached .eml files?
Have tried message/rfc822
but when you open the file in Thunderbird the popup windows is empty. Have also tried text/plain
but then the attachment is opended as plain text. I want to open the attachment .eml as an email
When you receive a MTA report (not delivered) the bounce mail is always forwarded as an attachment
I want to attach the full MTA report + forwarded bounce mail to a new mail
Content-Type: application/octet-stream; name="xxx.EML" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="xxx.EML"
, and is able to open the received attachment “as” an email again via double click, though I could not say whether that was not probably due to the registered file ending. What happens when you send yourself a mail in Thunderbird, that you just attached an EML file to - does it work as desired then? If so, check the source code of that mail. – Ontarioapplication/octet-stream
create an answer :) – Vineyard