Failed to send email error - UnsupportedDataTypeException
I am seeing the below error when certain events occur. This does not happen for all events that need to send an email, and the emailing does work with other events.
Any help would be appreciated. See error log entry below.
This event is from a data point in the zwave data source if that is helpful.
Failed to send email titled "Critical - Motion detected multi sensor 01 (active) - id:2932" to "email@example.com". Message: "Failed messages: javax.mail.MessagingException: IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_209_25601685.1420423357089""Add comment
Is "firstname.lastname@example.org" the actual email in the error or did you replace it for this post?
The email has been replaced for the post. I am currently using a Gmail account for development and have provided the credentials to the Gmail account in the mango settings. And this works for events and scheduled reports. However 10-20% of the time it fails and this message occurs. One theory I had was that too many events occur simultaneously and the emails can not be buffered. Or the Gmail account can not refresh fast enough. But again this is just a theory.
I've never had good luck with gmail. Check out this post in our wiki: http://infiniteautomation.com/wiki/doku.php?id=mango_config:smtpoptions
I would recommend you try sendgrid and see how that works. I have used Amazon's email service and it works well as long you are sure to track any bounces. http://aws.amazon.com/ses/
I have set it up with sendgrid. Same problem. Web search suggests this might be a problem with the class loader. Is there any other information I can provide to debug this issue?