Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

target_mail

Marcel Kloubert edited this page Nov 1, 2017 · 8 revisions

Home >> Targets >> mail

Mail (SMTP)

Deploys to a ZIP file and sends it as attachment by mail via SMTP.

{
    "deploy": {
        "targets": [
            {
                "type": "mail",
                "name": "My mail server",
                "description": "An email deployer",

                "host": "smtp.example.com", "port": 465,
                "secure": true,
                "requireTLS": true,
                "rejectUnauthorized": true,
                "user": "mkloubert@example.com", "password": "P@assword123!",
                "from": "mkloubert@example.com",
                "to": "tm@example.com, ys@example.com"
            }
        ]
    }
}
Name Description
from The optional email address of the sender.
host The host address of the server. Default: 127.0.0.1
ignoreTLS Ignore TLS or not. Default: (false)
password Password
port The TCP port of the server. Default: 25, 465, 587 (based on the security settings)
promptForPassword Prompt for a password if not defined. Default: (true)
rejectUnauthorized s. tls module. Default: (true)
requireTLS Requires TLS or not. Default: (false)
secure Use secure connection or not. Default: (true)
to The optional initial list of target email addresses.
transformer* The path to the script that transforms data before it is send.
transformerOptions Optional data for the transformer script.
user Username

* supports placeholders

Clone this wiki locally