Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
|
Name | Default Value | Context | Description |
---|---|---|---|
| | Producer | To-receiver of the email. This can be a single receiver or a comma-separated list of receivers. |
| | Producer | Cc-receiver of the email. This can be a single receiver or a comma-separated list of receivers. |
| | Producer | Bcc-receiver of the email. This can be a single receiver or a comma-separated list of receivers. |
| | Producer | Subject of the email. |
| reference to | Producer | Reference to an |
Message headers
Name | Type | Context | Description |
---|---|---|---|
| | Producer | Subject of the email. Overrides |
| | Producer | Sender of the email. Overrides sender definition in endpoint URI. |
| | Producer | To-receiver(s) of the email. Overrides |
| | Producer | Cc-receiver(s) of the email. Overrides |
| | Producer | Bcc-receiver(s) of the email. Overrides |
Message body
On the producer side the in
message body is converted to a String
.
Usage
... .setHeader(GMailBinding.GMAIL_SUBJECT, constant("Hello")) .setHeader(GMailBinding.GMAIL_TO, constant("account2@somewhere.com")) .to("gmail://account1@gmail.com");
Sends an email with subject Hello
from account1@gmail.com
to account2@somewhere.com
. The mail message body is taken from the in
message body. Please note that account1@gmail.com
must be an administrator account for the current GAE application.
Dependencies
Maven users will need to add the following dependency to their pom.xml
.
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-gae</artifactId> <version>x.x.x</version> </dependency>