camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ychawla <premiergenerat...@yahoo.com>
Subject Re: Need help in Camel to send emails
Date Tue, 06 Mar 2012 22:35:40 GMT
Hi,
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:

<setHeader
headerName="to"><constant>recipient@domain.com</constant></setHeader>

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";

}

Thanks,
Yogesh

--
View this message in context: http://camel.465427.n5.nabble.com/Need-help-in-Camel-to-send-emails-tp5541960p5542525.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message