SendmailΒΆ

Description

Send a message to any e-mail address

Options

Name Required Multiple Values Description
TO yes no  
SUBJECT yes no  
MESSAGE yes no  

Note

The sendmail action requires some additional settings in the pilight configuration:

{
  "settings": {
    "smtp-sender": "sender@domain.com",
    "smtp-host": "smtp.smtphost.com",
    "smtp-port": 465,
    "smtp-user": "smtpuser@domain.com",
    "smtp-password": "password"
  }
}

Examples

IF 1 == 1 THEN sendmail SUBJECT Doorbell rang MESSAGE Doorbell rang TO someone@somewhere.com

Changed in version 8.1.0.

IF 1 == 1 THEN sendmail SUBJECT 'Doorbell rang' MESSAGE 'Doorbell rang' TO someone@somewhere.com