Class - jobs.job_email.JobConfig
¶
JSON Schema¶
JobConfig¶
JSON configuration for the job |
||||
type |
object |
|||
properties |
||||
|
Server |
|||
Hostname or IP address of a server. Defaults to a local postfix. |
||||
type |
string |
|||
default |
||||
|
Port |
|||
The TCP/IP port to use for SMTP. See comment at |
||||
type |
integer |
|||
default |
25 |
|||
|
Require Tls |
|||
Use STARTTLS to establish secure transport. Note that this requires
use of a non-TLS port to first establish communication. Often, this
means that |
||||
type |
boolean |
|||
default |
False |
|||
|
Credentials |
|||
Credentials name or dict containing |
||||
examples |
‘support_email_account’ |
|||
{‘username’: ‘<username>’, ‘password’: ‘<password>’} |
||||
anyOf |
type |
string |
||
type |
object |
|||
additionalProperties |
type |
string |
||
|
Timeout |
|||
Timeout in seconds for blocking operations. |
||||
type |
integer |
|||
default |
30 |
|||
|
Mail Subject |
|||
The |
||||
type |
string |
|||
default |
default_mail_subject |
|||
|
Mail From |
|||
The email address that will appear in the |
||||
type |
string |
|||
examples |
||||
|
Mail To |
|||
One or more email addresses. |
||||
examples |
alice@foo.com,bob@foo.com, ted@bar.com |
|||
anyOf |
type |
string |
||
type |
array |
|||
items |
type |
string |
||
|
Mail Cc |
|||
CC recipients. |
||||
anyOf |
type |
string |
||
type |
array |
|||
items |
type |
string |
||
|
Mail Bcc |
|||
BCC recipients. |
||||
anyOf |
type |
string |
||
type |
array |
|||
items |
type |
string |
||
|
Text |
|||
Text template which will be used as the body of the email. |
||||
type |
string |
|||
|
Html |
|||
HTML template which will be used as the body of the email. |
||||
type |
string |
|||
examples |
<html><head>CEO Report</head><body>Job done.</body></html> |
|||
|
Attachments |
|||
List of a) file names located in |
||||
type |
array |
|||
examples |
vehicles.csv |
|||
/tmp/temp_data.txt |
||||
items |
type |
string |