Sending HTML email error

1
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?
asked
4 answers
4

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:
https://github.com/mendix/EmailModuleWithTemplates/issues/17

 

answered
3

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

answered
1

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
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot">
answered
0

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.

answered