camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ychawla <>
Subject Re: Need help in Camel to send emails
Date Tue, 06 Mar 2012 22:35:40 GMT
Are you trying to set the 'to' field in your email.  You can either set that
on the smtp URI or in a header.  For example:


The body of your email is whatever is on your message body.

If you want to set it as part of your route, try using a bean:

<to uri="bean:createEmailBodyBean?method=createEmailBody"/>

public String createEmailBody()
  return "Some email body string here";



View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message