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

target_mail

Marcel Kloubert edited this page Dec 9, 2017 · 1 revision

Home >> Targets >> mail

Mail (SMTP)

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

{
    "deploy.reloaded": {
        "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 The password for the server.
port* The TCP port of the server. Default: 25, 465, 587 (based on the security settings)
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.
user* The username for the server.

* supports placeholders

Clone this wiki locally