Hi,
The body of the email will be whatever you have as the current body of the
Camel exchange. You can explicitly set the body as well:
<camel:setBody><constant>This is my email body</constant></camel:setBody>
To control when the email is sent, you can split up your route:
<route>
<from
uri="smtp://${col_username}@${col_host}.com:${port}?password=${col_password}&filter=#errorBillingResponseEmailing"/>
<to uri="file:someFolder"/>
</route>
Then you can use quartz to set up a timer to poll your folder:
http://camel.465427.n5.nabble.com/Consuming-Files-using-Timer-Quartz-td3320330.html
If you don't have complex requirements for when it is sent, the file URI
syntax could be sufficient.
You can tell Camel to delete all emails it consumes by configuration. Once
you do this, you can BCC your mailbox and apply an email rule to put a copy
of the email sent in the 'sent' folder.
Cheers,
Yogesh
--
View this message in context:
http://camel.465427.n5.nabble.com/Need-help-in-Camel-to-send-emails-tp5541960p5542072.html
Sent from the Camel - Users mailing list archive at Nabble.com.