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 |
---|---|---|---|---|---|
Host | Required The mail server host. | string | smtp.gmail.com | ||
Password | Required The password to access the mail box. | string | |||
Username | Required The username to access the mail box. | string | |||
Port | The mail server port. | string | 25 | ||
From | The | string | |||
Subject | The mail subject of the outgoing mail. | string | |||
To | The | 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
Mail Sink Kamelet Description
SMTP Email Delivery
This Kamelet sends emails through SMTP servers with configurable authentication and addressing.
Required Configuration
-
Connection Host: SMTP server hostname (e.g., smtp.gmail.com)
-
Username and Password: SMTP authentication credentials
Optional Configuration
-
Connection Port: SMTP port (defaults to 25)
-
From: Sender email address
-
To: Primary recipient
-
Subject: Email subject line