mail sink Mail Sink

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Send mails to given SMTP server.

Configuration Options

The following table summarizes the configuration options available for the mail-sink Kamelet:

Property Name Description Type Default Example

connectionHost

Host

Required The mail server host.

string

smtp.gmail.com

password

Password

Required The password to access the mail box.

string

username

Username

Required The username to access the mail box.

string

connectionPort

Port

The mail server port.

string

25

from

From

The from field of the outgoing mail.

string

subject

Subject

The mail subject of the outgoing mail.

string

to

To

The to field of the outgoing mail.

string

Dependencies

At runtime, the mail-sink Kamelet relies upon the presence of the following dependencies:

  • camel:core

  • camel:mail

  • camel:kamelet

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:timer-source"
      parameters:
        period: 10000
        message: 'test'
      steps:
        - to:
            uri: "kamelet:mail-sink"

You can now run it directly through the following command

camel run route.yaml