Open jonibi opened 2 years ago
Hello,
I want to attach an .eml file to a Exchange Draft. The issue is that it attaches the message, but the MIME attachment in email is with
Content-Type: application/octet-stream
and it doesn't have a preview available for Outlook desktop.
$api->getClient()->CreateAttachment(array ( 'ParentItemId' => $mailId->toArray(), 'Attachments' => array ( 'FileAttachment' => array ( 'Name' => 'message.eml', 'Content' => file_get_contents('message.eml'), 'ContentType' => 'message/rfc822' ) ), ));
If I try to change ContentType' => 'message' it places on the email Content-Type: message/rfc822, but it has empty Content
ContentType' => 'message'
Hello,
I want to attach an .eml file to a Exchange Draft. The issue is that it attaches the message, but the MIME attachment in email is with
Content-Type: application/octet-stream
and it doesn't have a preview available for Outlook desktop.
If I try to change
ContentType' => 'message'
it places on the email Content-Type: message/rfc822, but it has empty Content