Skip to content

Commit

Permalink
Add a comment documenting behavior of Exchange w/ mixed.
Browse files Browse the repository at this point in the history
We added this code because some Exchange servers don't play nice without
a mixed multipart. This appears to be tied to some versions of the
Exchange server, not neccicarily Outlook or other associated clients.
  • Loading branch information
farmdawgnation committed May 28, 2014
1 parent e5a16ed commit 21e0dfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/util/src/main/scala/net/liftweb/util/Mailer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ trait Mailer extends SimpleInjector {
if (attachments.isEmpty) {
bp.setContent(relatedMultipart)
} else {
// Some old versions of Exchange server will not behave correclty without
// a mixed multipart wrapping file attachments. This appears to be linked to
// specific versions of Exchange and Outlook. See the discussion at
// https://github.com/lift/framework/pull/1569 for more details.
val mixedMultipart = new MimeMultipart("mixed")

val relatedMultipartBodypart = new MimeBodyPart
Expand Down

0 comments on commit 21e0dfa

Please sign in to comment.