How to configure below code into camel-context.xml file?

template = context.createProducerTemplate();
ProducerTemplate template;
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); 



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-mail-regarding-xml-configuration-tp5725280.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to