Sending HTML email error

Hi,  When I am trying to use ‘test’ or send html email using Email Template Module I am getting error:   Failed to use the email server to send the email, correct your configuration. Bad type on operand stack Exception Details: Location: org/apache/commons/codec/binary/Base64InputStream.<init>(Ljava/io/InputStream;Z)V @11: invokespecial Reason: Type 'org/apache/commons/codec/binary/Base64' (current frame, stack[2]) is not assignable to 'org/apache/commons/codec/binary/BaseNCodec' Current Frame: bci: @11 flags: { flagThisUninit } locals: { uninitializedThis, 'java/io/InputStream', integer } stack: { uninitializedThis, 'java/io/InputStream', 'org/apache/commons/codec/binary/Base64', integer } Bytecode: 0x0000000: 2a2b bb00 0259 03b7 0003 1cb7 0004 b1   For text mail there is no problems at all.   I have got newest version of Modeler, MxModelReflection and Encryption. I am using same version of email template and configuration on other project and everything is ok. Any ideas?
4 answers

What happens if you delete the file org.apache.servicemix.bundles.commons-codec-1.3.0.jar from the userlib folder?

This file caused problems earlier with base64 encoded images in templates, see also issue #17:



If the problem reproducible, then it could be a request for the Mendix support. The module seemed to be supported by Mendix.


Put your base 64 values in your img element like the example below (replace the base64 values after the comma with yours), and your img element in your html body.


<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA
9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot">

Thanks for sharing this HTML mail error code as it is also available in the w3school but unable to get that. printer offline fix assured me to get the template module.