Inline attachments sent to MS Outlook messes up message layout

Hi - I've noticed when sending an email from Mail to MS Outlook with an attachment inline the message gets broken into multiple pieces. In Outlook the message body shows only the text above the attachment, the attachment is showing not inline but in the header part of the message and the rest of the body (the part below the attachment) shows up as another attachment with a cryptic name like ATTxxxxxxx.htm.

I tried sending the attachment Windows friendly and not Windows friendly - no difference.

Why is this happening?

Cheers
Michael

iMac 2.8 GHz Core 2 Duo, 4GB RAM, ATI Radeon HD 2600 Pro, Mac OS X (10.5.5)

Posted on Dec 15, 2008 4:56 AM

Reply
16 replies

Dec 15, 2008 8:05 AM in response to etresoft

Hi etresoft - I think there could be 3 culprits:

1. Mail
2. MS Exchange server
3. MS Outlook

Since many if not most people are using MS mail server and/or clients I'm concerned about how my email which I edited in my Mail app will look at the destination. If I cannot control how my mail will look at the destination this has serious implications as important information my got lost.

If I received such an email I'm likely not to open the ATT* attachment as it looks suspicious.

Cheers
MIchael

Dec 15, 2008 10:42 AM in response to michaelw

Michael,

The email looked the same as received (in Plain Text actually) as it does in the screenshot you also sent by a separate email. The only difference is that on your Mac it apparently displayed as RTF, but looking at the RAW Source, the message is only Plain Text -- when only one font is used, and there is an attachment, Mail automatically sends RTF as Plain Text.

However, something else is going on -- the attachment is not Inline. Its preceding header as viewed in RAW Source does not have the Content Disposition tag of Inline. Instead the Content-Type header reports, as you will see below, that it is "application/octet-stream"!

--Apple-Mail-80--197679133
Content-Disposition: attachment;
filename=attachment.doc
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="attachment.doc"
Content-Transfer-Encoding: base64

I will have to do a little research, but, if memory correctly serves that improper header is caused by the Exchange Server. Should have this header in this case -- see:

http://kb.iu.edu/data/agtj.html

More shortly,

Ernie

Message was edited by: Ernie Stamper

Dec 15, 2008 10:53 AM in response to michaelw

Michael,

Initial research indicates that it is related to an Exchange Server configuration. Do both you and your intended recipient use Exchange Servers, and version 2003. See this link.

See the following link which I think delves into what setups on an Exchange Server may cause this, but I have not really studied it in that regard.

http://support.microsoft.com/kb/836555

Ernie

Dec 15, 2008 11:13 AM in response to Ernie Stamper

Hi Ernie - I'm composing and sending my email message using my Apple Mail client from home connected to the Internet via my Demon broadband connection. This message is received by my work laptop running Windows XP and using Outlook 2003 sitting behind an Exchange server - not sure which version.

This is what the header looks like on the Outlook side:

Message-Id: <51D5F56C-7F16-4686-A85F-BB6C0771806F@gmail.com>
To: xxxxxx
Content-Type: multipart/mixed; boundary=Apple-Mail-80--197679133
Subject: attachment test
Mime-Version: 1.0 (Apple Message framework v929.2)
Date: Mon, 15 Dec 2008 18:18:27 +0000
X-Mailer: Apple Mail (2.929.2)
From: MW <xxxxx>
X-Spam-Check-By: xxxx
X-Spam-Status: No, hits=0.0 required=7.0
tests=
X-Spam-Level: *
X-Virus-Checked: Checked by ClamAV on xxxx
X-NTM-HELO: mail-ew0-f20.google.com
X-NTM-MAIL-FROM: xxxx
X-NTM-RCPT-TO: <xxxx>
X-NTM-PEER-INFO: [209.85.219.20]
X-NTM-ID: 1229364864.306460000281@ertph000
Return-Path: xxxx
X-OriginalArrivalTime: 15 Dec 2008 18:18:44.0433 (UTC) FILETIME=[90A7AC10:01C95EE1]

--Apple-Mail-80--197679133
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit

--Apple-Mail-80--197679133
Content-Disposition: attachment;
filename=attachment.doc
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="attachment.doc"
Content-Transfer-Encoding: base64

--Apple-Mail-80--197679133
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit


--Apple-Mail-80--197679133--

Cheers
Michael

Dec 15, 2008 11:19 AM in response to michaelw

Michael,

The issue with the Att attachment has nothing to do with Mail, and everything to do with sitting behind an Exchange Server. The ATT attachment does not appear either in normal view or RAW Source view on the messages you sent me.

I am not clear what the other issue with attachments messed up, but I do know the Content Disposition header I found on the first message could be problematic for some recipients. This Content Disposition tag also originates with an Exchange Server and is not due to actions by Mail, I believe. It does not appear when you sent the screenshots.

It occurs to me that if limited to files created with MS Office, those files could in fact contain a micro-viri which is an application, and might cause the application/octet stream disposition tag.

There are viri that can infect Office -- this is actually not your Mac that would be infected, but only the application or applications in Office. This infection can pass with a shared file, and is cross-platform. See:

http://outlandishjosh.com/wp/index.php?p=861

In many instances, it is the SMTP server that flags a message as containing a micro-virus.

Ernie

Edit: I scanned the word doc you sent with ClamXav and no problems were found, so probably not a micro-virus issue.

Message was edited by: Ernie Stamper

Dec 15, 2008 11:22 AM in response to Ernie Stamper

Thanks Ernie - here's my raw Apple Mail message that I sent which shows that the Content-Disposition tag is added by Mail:

Message-Id: <51D5F56C-7F16-4686-A85F-BB6C0771806F@gmail.com>
From: MW <xxxx>
To: xxxx
Content-Type: multipart/mixed;
boundary=Apple-Mail-80--197679133
X-Smtp-Server: smtp.gmail.com:xxxx
Bcc: xxxx <xxxx>
Subject: attachment test
Mime-Version: 1.0 (Apple Message framework v929.2)
Date: Mon, 15 Dec 2008 18:18:27 +0000


--Apple-Mail-80--197679133
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit

Hi Ernie

This is text before the attachment.
The attachment file is inserted inline after this line:

--Apple-Mail-80--197679133
Content-Disposition: attachment;
filename=attachment.doc
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="attachment.doc"
Content-Transfer-Encoding: base64

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAIQAAAAAAAAAA
[snip]
AAAAAAAAAAAAAAAAAAAAAAAAAA==

--Apple-Mail-80--197679133
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit


This is some text on the line directly after the attachment.

Cheers
Michael


--Apple-Mail-80--197679133--

Dec 15, 2008 12:04 PM in response to Ernie Stamper

Here's the raw message from my Sent box:

Message-Id: <51D5F56C-7F16-4686-A85F-BB6C0771806F@gmail.com>
From: MW <xxxx>
To: xxxx
Content-Type: multipart/mixed;
boundary=Apple-Mail-80--197679133
X-Smtp-Server: smtp.gmail.com:xxxx
Bcc: Michael Wolfrum <xxxx>
Subject: attachment test
Mime-Version: 1.0 (Apple Message framework v929.2)
Date: Mon, 15 Dec 2008 18:18:27 +0000


--Apple-Mail-80--197679133
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit

Hi Ernie

This is text before the attachment.
The attachment file is inserted inline after this line:

--Apple-Mail-80--197679133
Content-Disposition: attachment;
filename=attachment.doc
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="attachment.doc"
Content-Transfer-Encoding: base64

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAIQAAAAAAAAAA
...
AAAAAAAAAAAAAAAAAAAAAAAAAA==

--Apple-Mail-80--197679133
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit


This is some text on the line directly after the attachment.

Cheers
Michael


--Apple-Mail-80--197679133--

Dec 15, 2008 12:47 PM in response to michaelw

michaelw wrote:
Hi etresoft - I think there could be 3 culprits:


Sorry, but no. There are, at most, 2 culprits - both made by Microsoft. I'm not familiar with Exchange server. It is certainly possible that the Exchange server is scrambling your message. However, I can state with certainty that I have done simple tests with Outlook using my own server and can certify that Outlook will scramble e-mail messages without any server help.

Since many if not most people are using MS mail server and/or clients I'm concerned about how my email which I edited in my Mail app will look at the destination. If I cannot control how my mail will look at the destination this has serious implications as important information my got lost.


Welcome to the wonderful world of e-mail. Unfortunately, you are going to have to deal with it. If you want your message to look a certain way, then your best bet is PDF files. With e-mail, the best you can possibly get are some "hints" about how your message should be displayed. A client is under no requirement to display your message the way it looked when you sent it.

Most e-mail clients do a pretty good job. Unfortunately, you are using Apple Mail to compose and send your message. Apple Mail is a very good e-mail client and is perfectly capable of letting you construct e-mail messages that other clients cannot understand. Apple Mail is not doing anything wrong. Its messages are 100% compliant to the MIME e-mail standards. You have to realize that most PC people cannot even conceive of doing something like inline images. It is just impossible on most PCs.

In fact, Apple has, over the past few years, reduced the abilities of Mail in an effort to alleviate this problem. Apple Mail used to be a much better e-mail client 2 or 3 years ago. Apple works hard to get their messages to display as nicely as possible on Outlook, but Outlook is the limiting factor here. The future doesn't look any better. As more and more people go to web-based e-mail, there will be less and less support for fancy e-mail messages such as the ones you are trying to create.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Inline attachments sent to MS Outlook messes up message layout

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.