Back to Seatunnel

Email

docs/en/connectors/sink/Email.md

2.3.132.7 KB
Original Source

import ChangeLog from '../changelog/connector-email.md';

Email

Email sink connector

Description

Send the data as a file to email.

The tested email version is 1.5.6.

Key features

Options

nametyperequireddefault value
email_from_addressstringyes-
email_to_addressstringyes-
email_hoststringyes-
email_transport_protocolstringyes-
email_smtp_authbooleanyes-
email_smtp_portintno465
email_authorization_codestringno-
email_message_headlinestringyes-
email_message_contentstringyes-
email_attachment_namestringnoemailsink.csv
email_field_delimiterstringno,
common-optionsno-

email_from_address [string]

Sender Email Address.

email_to_address [string]

Address to receive mail, Support multiple email addresses, separated by commas (,).

email_host [string]

SMTP server to connect to.

email_transport_protocol [string]

The protocol to load the session .

email_smtp_auth [boolean]

Whether to authenticate the customer.

email_smtp_port [int]

Select port for authentication.

email_authorization_code [string]

authorization code,You can obtain the authorization code from the mailbox Settings.

email_message_headline [string]

The subject line of the entire message.

email_message_content [string]

The body of the entire message.

email_attachment_name [string]

The name of the email attachment file. Default is emailsink.csv.

email_field_delimiter [string]

The delimiter used to separate fields in the attachment file. Default is comma ,.

common options

Sink plugin common parameters, please refer to Sink Common Options for details.

Example

bash

 EmailSink {
      email_from_address = "[email protected]"
      email_to_address = "[email protected]"
      email_host="smtp.qq.com"
      email_transport_protocol="smtp"
      email_smtp_auth="true"
      email_authorization_code=""
      email_message_headline=""
      email_message_content=""
      email_attachment_name="report.csv"  # Optional, default is emailsink.csv
      email_field_delimiter="|"           # Optional, default is ,
   }

Changelog

<ChangeLog />