Hi.
The attachment has been created with aspose email for java (latest version). We don't know why, but outlook for MAC doesn't open it. Can you help please?
Kind regards,
JP.
Hi.
The attachment has been created with aspose email for java (latest version). We don't know why, but outlook for MAC doesn't open it. Can you help please?
Kind regards,
JP.
Hi Renato,
Hi Kashif,
Thank you for your reply. This is JP writing on behalf of Renato.
I’ve attached the original file.
The machine that opens the file is: Windows 7 with Microsoft Office Outlook 2007 SP3.
The machine that doesn’t open the file is: MAC OX 10 V 10.7 with Microsoft Outlook for Mac 2011.
The code is:
License license = new License();
license.setLicense(secretPath);
System.setProperty(“file.encoding”, “UTF-8”);
MailMessage message = new MailMessage();
message.setSubject(" “);
message.setHtmlBody(”");
AttachmentCollection attachments = message.getAttachments();
Attachment attObj = new Attachment(fileName);
String fileNameWithoutFolder = new File(fileName).getName();
attObj.setName(fileNameWithoutFolder);
message.addAttachment(attObj);
MapiMessage mapiMsg = MapiMessage.fromMailMessage(message);
mapiMsg.setMessageFlags(MapiMessageFlags.MSGFLAG_UNSENT | MapiMessageFlags.MSGFLAG_FROMME);
mapiMsg.save(outputFileName);
Kind regards,
JP.
Hi JP,
Hi JP,
Hi Kashif,
Yes. I have the same problem: when I open in MAC, the whole message appears as an attachment but I'm never able to open the actual message.
I haven't tried to open a message saved from a windows machine. But, when a message generated from aspose is opened on MAC, it's opened as attachment.
Please let me know about your progress.
Kind regards,
JP.
Hi JP,
Hi Kashif,
It seems that this is a well known problem. Please have a look at:
http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macoutlook/open-mails-saved-in-msg-format/6955d94b-ada5-4d92-930d-c17d18ef0b55?msgId=1af31a16-d90a-4f85-956b-3dbe57ca9b91http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macoutlook/open-mails-saved-in-msg-format/6955d94b-ada5-4d92-930d-c17d18ef0b55?msgId=1af31a16-d90a-4f85-956b-3dbe57ca9b91
http://www.labnol.org/software/open-outlook-msg-files-on-mac/9804/http://www.labnol.org/software/open-outlook-msg-files-on-mac/9804/
http://apple.stackexchange.com/questions/36508/opening-msg-file-in-outlook-for-mac-2011http://apple.stackexchange.com/questions/36508/opening-msg-file-in-outlook-for-mac-2011
Would you recomend me other file format instead of MSG?
Kind regards,
JP.
Hi JP,