I m having this route for sending Email Alerts whenever any error occurs in my routes.. BUT i am getting email content as an attachment not as a body of Email.. Please suggest why i am getting this attachment ???
.routeId("WellmarkSGEmailToProductionSupport") .setBody(simple("${property.requestPayLoad}")) .processRef("productionSupportProcessor") .log(LoggingLevel.INFO, "Wellmark SG ProductionSupportRoute Sending Email to production support") .convertBodyTo(String.class) .choice() .when(simple("${exception.message} != null")) .setHeader("errorMessage", simple("exception.message")) .otherwise() .setHeader("errorMessage", simple("Please see your request one of the field values is invalid or incorrect.")) .end() .to(exceptionTemplate) .setHeader("hostBundleName", simple("exchangeId")) .setHeader("title", simple(emailTitle)) .setHeader("From", simple(emailFrom)) .setHeader("To", simple(emailTo)) .setHeader("Subject", simple(emailSubject)) .to(ExchangePattern.InOnly, smtpServer) -- View this message in context: http://camel.465427.n5.nabble.com/Getting-mail-content-as-an-attachment-tp5752418.html Sent from the Camel - Users mailing list archive at Nabble.com.