跳到主要内容
版本:2.1.2

Email

Description

Supports data output through email attachments. The attachments are in the xlsx format that supports excel to open, which can be used to notify the task statistics results through email attachments.

提示

Engine Supported and plugin name

  • Spark: Email
  • Flink

Options

nametyperequireddefault value
subjectstringyes-
fromstringyes-
tostringyes-
bodyTextstringno-
bodyHtmlstringno-
ccstringno-
bccstringno-
hoststringyes-
portstringyes-
passwordstringyes-
limitstringno100000
use_sslbooleannofalse
use_tlsbooleannofalse

subject [string]

Email Subject

from [string]

Email sender

to [string]

Email recipients, multiple recipients separated by ,

bodyText [string]

Email content, text format

bodyHtml [string]

Email content, hypertext content

cc [string]

Email CC, multiple CCs separated by ,

bcc [string]

Email Bcc, multiple Bccs separated by ,

host [string]

Email server address, for example: stmp.exmail.qq.com

port [string]

Email server port For example: 25

password [string]

The password of the email sender, the user name is the sender specified by from

limit [string]

The number of rows to include, the default is 100000

use_ssl [boolean]

The security properties for encrypted link to smtp server, the default is false

use_tls [boolean]

The security properties for encrypted link to smtp server, the default is false

Examples

Email {
subject = "Report statistics",
from = "xxxx@qq.com",
to = "xxxxx1@qq.com,xxxxx2@qq.com",
cc = "xxxxx3@qq.com,xxxxx4@qq.com",
bcc = "xxxxx5@qq.com,xxxxx6@qq.com",
host= "stmp.exmail.qq.com",
port= "25",
password = "***********",
limit = "1000",
use_ssl = true
}