== 1. SimpleMailMessage (sendPlain) text/plain; charset=UTF-8 == 2. HTML only, non-multipart helper (sendHtmlOnly) text/html;charset=UTF-8 == 3. welcome: text + HTML + inline logo + PDF attachment multipart/mixed multipart/related multipart/alternative text/plain; charset=UTF-8 text/html;charset=UTF-8 image/png; name=inline [inline; filename=inline] [Content-ID ] application/pdf; name=welcome-guide.pdf [attachment; filename=welcome-guide.pdf] == 4. welcome without inline image and without attachment (helper still in multipart mode) multipart/mixed multipart/related multipart/alternative text/plain; charset=UTF-8 text/html;charset=UTF-8 == 5. addInline BEFORE setText multipart/mixed multipart/related image/png; name=inline [inline; filename=inline] [Content-ID ] text/html;charset=UTF-8 == 6. addAttachment on a helper built with multipart=false IllegalStateException: Not in multipart mode - create an appropriate MimeMessageHelper via a constructor that takes a 'multipart' flag if you need to set alternative texts or add inline elements or attachments.