GMail — supports sending of emails via the GAE mail service
The URI format for a GMail endpoint is one of the following:
gmail://user@gmail.com[?options] gmail://user@googlemail.com[?options]
Maven users will need to add a dependency on camel-gae to their poms as
shown in Example 8, “GMail dependency”.
Example 8. GMail dependency
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-gae</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>Table 19, “GMail options” lists the options for a GMail endpoint.
Table 19. GMail options
| Name | Context | Description |
|---|---|---|
to | Producer | Specifies the To-receiver of the email. To specify multiple
recipients use a comma-separated list. |
cc | Producer | Specifies the Cc-receiver of the email. To specify multiple
recipients use a comma-separated list. |
bcc | Producer | Specifies the Bcc-receiver of the email. To specify multiple
recipients use a comma-separated list. |
subject | Producer | Specifies the subject of the email. |
outboundBindingRef | Producer | Specifies a reference to an
OutboundBinding<GMailEndpoint, MailService.Message, void> in the
registry for customizing the binding of an exchange to the mail service. |
GMail producer endpoints use the following GMailBinding headers:
| Name | Type | Description |
|---|---|---|
GMAIL_SUBJECT
| String
| Subject of the email. Overrides subject endpoint
option. |
GMAIL_SENDER
| String
| Sender of the email. Overrides sender definition in endpoint URI. |
GMAIL_TO
| String
| To-receiver(s) of the email. Overrides to endpoint option. |
GMAIL_CC
| String
| Cc-receiver(s) of the email. Overrides cc endpoint option. |
GMAIL_BCC
| String
| Bcc-receiver(s) of the email. Overrides bcc endpoint option. |