Uploaded image for project: 'Lucee Development'
  1. LDEV-634

<cfmailpart type="html"> causes mail to not be sent

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.118
    • Fix Version/s: 5.0.0.138
    • Labels:
    • Environment:

      Apache 2.2, Tomcat 8, Java 8, AWS Amazon Linux

      Description

      When you include <cfmailpart type="html"> this causes the mail to fail to send in the queue.

      If you have:

      <cfmail to="andrew@domain.co.uk" from="My App <app@domain.co.uk>" subject="test mail">
      This is a text email!
      </cfmail>
      

      It all works fine.

      If you have:

      <cfmail to="andrew@domain.co.uk" from="My App <app@domain.co.uk>" subject="test mail">
              <cfmailpart type="text">
                      This is a text email!
              </cfmailpart>
      </cfmail>
      

      It all works fine.

      However, if you have:

      <cfmail to="andrew@domain.co.uk" from="My App <app@domain.co.uk>" subject="test mail">
              <cfmailpart type="text">
                      This is a text email!
              </cfmailpart>
              <cfmailpart type="html">
                      <b>This is a bold email!</b>
              </cfmailpart>
      </cfmail>
      

      or

      <cfmail to="andrew@domain.co.uk" from="My App <app@domain.co.uk>" subject="test mail">
              <cfmailpart type="html">
                      <b>This is a bold email!</b>
              </cfmailpart>
      </cfmail>
      

      It fails and the email get stuck in the "tasks" list in the Lucee Admin with the message:

      IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; boundary="----=_Part_1_801851754.1447977859324" lucee.runtime.exp.NativeException: IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; boundary="----=_Part_1_801851754.1447977859324" at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:577) at lucee.runtime.net.smtp.SMTPSender.run(SMTPSender.java:61) Caused by: javax.mail.MessagingException: IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; boundary="----=_Part_1_801851754.1447977859324" ... 2 more :0
      email-smtp.us-east-1.amazonaws.com IOException while sending message;
        nested exception is:
      	javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; 
      	boundary="----=_Part_1_801851754.1447977859324"
      lucee.runtime.exp.NativeException: IOException while sending message;
        nested exception is:
      	javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; 
      	boundary="----=_Part_1_801851754.1447977859324"
      	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:577)
      	at lucee.runtime.net.smtp.SMTPSender.run(SMTPSender.java:61)
      Caused by: javax.mail.MessagingException: IOException while sending message;
        nested exception is:
      	javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; 
      	boundary="----=_Part_1_801851754.1447977859324"
      	... 2 more
      :0
      lucee.runtime.exp.NativeException: email-smtp.us-east-1.amazonaws.com IOException while sending message;
        nested exception is:
      	javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; 
      	boundary="----=_Part_1_801851754.1447977859324"
      lucee.runtime.exp.NativeException: IOException while sending message;
        nested exception is:
      	javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; 
      	boundary="----=_Part_1_801851754.1447977859324"
      	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:577)
      	at lucee.runtime.net.smtp.SMTPSender.run(SMTPSender.java:61)
      Caused by: javax.mail.MessagingException: IOException while sending message;
        nested exception is:
      	javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; 
      	boundary="----=_Part_1_801851754.1447977859324"
      	... 2 more
      :0
      	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:577)
      	at lucee.runtime.net.smtp.SMTPSender.run(SMTPSender.java:61)
      Caused by: lucee.runtime.net.mail.MailException: email-smtp.us-east-1.amazonaws.com IOException while sending message;
        nested exception is:
      	javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; 
      	boundary="----=_Part_1_801851754.1447977859324"
      lucee.runtime.exp.NativeException: IOException while sending message;
        nested exception is:
      	javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; 
      	boundary="----=_Part_1_801851754.1447977859324"
      	at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:577)
      	at lucee.runtime.net.smtp.SMTPSender.run(SMTPSender.java:61)
      Caused by: javax.mail.MessagingException: IOException while sending message;
        nested exception is:
      	javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/alternative; 
      	boundary="----=_Part_1_801851754.1447977859324"
      	... 2 more
      :0
      	... 2 more
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                michaeloffner Michael Offner
                Reporter:
                andrew Andrew Dixon
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: