Plugin
Arg | Description | Type |
---|---|---|
to | Recipient of the mail | list of string (required) |
from | The from email address. | string |
cc | A cc for the mail | list of string |
subject | The subject. | string |
body | The body of the mail. | string (required) |
period | How long to wait before sending the next mail - help to throttle mails. | int64 |
server_port | The SMTP server port to use (default 587). | uint64 |
server | The SMTP server to use (if not specified we try the config file). | string |
auth_username | The SMTP username we authenticate to the server. | string |
auth_password | The SMTP username password we use to authenticate to the server. | string |
skip_verify | Skip SSL verification(default: False). | bool |
root_ca | As a better alternative to disable_ssl_security, allows root ca certs to be added here. | string |
secret | Alternatively use a secret from the secrets service. Secret must be of type ‘SMTP Creds’ | string |
headers | A dict of headers to send. | ordereddict.Dict |
Send Email to a remote server.
See the mail() function for more details.