Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.1.2, 3.2.1
-
Fix Version/s: None
-
Component/s: Transport: Email
-
Labels:None
-
Environment:
Windows 7, JDK 1.6.0.25
-
User impact:Low
-
Affects Docs:Yes
-
Similar Issues:None
Description
I have noticed that mimeType option is ignored when set directly on smtp:outbound-endpoint :
<smtp:outbound-endpoint host="${smtp.host}" port="${smtp.port}" mimeType="text/plain; charset=UTF-8"/>
or when set on explicit string-to-email tranformer inside smtp:outbound-endpoint:
<smtp:outbound-endpoint host="${smtp.host}" port="${smtp.port}" > <email:string-to-email-transformer encoding="UTF-8" mimeType="text/plain; charset=UTF-8"/> </smtp:outbound-endpoint>
The only way to force mimeType is to set it on smtp:connector and reference it inside smtp:outbound-endpoint,
<smtp:connector name="smtpConnector" contentType="text/plain; charset=UTF-8" /> <smtp:outbound-endpoint host="${smtp.host}" port="${smtp.port}" connector-ref="smtpConnector"/>