It is working now. Can we config below coding in camel-context.xml also? ProducerTemplate template; template = context.createProducerTemplate(); Map<String, Object> map = new HashMap<String, Object>(); map.put("To", "davscl...@apache.org"); map.put("From", "jstrac...@apache.org"); map.put("Subject", "Camel rocks");
String body = "Hello Claus.\nYes it does.\n\nRegards James."; template.sendBodyAndHeaders("smtp://davscl...@apache.org", body, map); Thanks in advance. -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-tp5725119p5725286.html Sent from the Camel - Users mailing list archive at Nabble.com.