SMTP

Undraw Circuit Board

SMTP

About

smtp is a special system where you can only send an email.

Built-in connection

The default connection is the smtp connection.

Smtp Server Connection creation

To create a smtp connection, you have the following possibilities

In a Configuration Vault, to define a smtp connection with the name mySmtp, you could write:

connections:
  mySmtp:
    uri: smtp://localhost:587
    user: user
    password: ${TABLI_MY_SMTP_PASSWORD}
    to: [email protected]; [email protected]
    to-names: foo; bar
    from: [email protected]
    from-name: tabulify
    tls: true
    auth: true

With the tabli add command of the connection module, adding a smtp connection with the name smtpConnectionName:

tabli connection add "smtpConnectionName" "smtp://localhost:587"

Note that you can add all configuration as query properties of the uri.

URI

smtp://host[:port]

Parameters

You can modify the following parameters

In the URI, the host is mandatory.

Name Default Description
PORT 25 the smtp port
FROM user@fqdn the default from address if none is provided
FROM_NAME user@fqdn the default name from address if none is provided
TO the default to address if none is provided
TO_NAMES the default names to address if none is provided
AUTH false
TLS false enable secured communication with TLS
DEBUG false toggle for debug statement

Inherited from built-in connection attributes

Name Default Description
USER the connection user
PASSWORD the connection password
Task Runner