This issue has been bugging me for a while and I finally figured out the cause.

There's a bug in Microsoft Exchange Server 2000 which causes message parts with a Content Disposition of "inline" to still be sent as attachments. So, the message body becomes an attachment.

I've successfully worked around the issue. I used to use the Path attribute for the attachment, but now I do this...

my $mailfile_data; if ( ! open(MAILFILE, "$mailfile") ) { Log( "Unable to open $mailfile for email report." ); return FAILURE; } { local $/; undef $/; $mailfile_data = <MAILFILE>; } close MAILFILE; $email->attach( Type => "text/html", Data => $mailfile_data, Disposition => "inline", );
    Microsoft Knowledge Base Article - 323482
    http://www.ietf.org/rfc/rfc1806.txt
    http://www.ietf.org/rfc/rfc2183.txt

Microsoft's Knowledge Base claims that "This behavior is in compliance with the Request For Comments (RFC) 2803 and 1806.", however using their own links to the RFC standards mentioned, I found that it is not...

The presence of the filename parameter does not force an implementation to write the entity to a separate file. It is perfectly acceptable for implementations to leave the entity as part of the normal mail stream unless the user requests otherwise. As a consequence, the parameter may be used on any MIME entity, even `inline' ones. These will not normally be written to files, but the parameter could be used to provide a filename if the receiving user should choose to write the part to a file.
--
-- GhodMode

In reply to MIME::Lite & MS Exchange 2000 by GhodMode

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.