New in version 2014.7.0.
This state is useful for firing messages during state runs, using the SMTP protocol
server-warning-message: smtp.send_msg: - name: 'This is a server warning message' - profile: my-smtp-account - recipient: firstname.lastname@example.org
send_msg(name, recipient, subject, sender=None, profile=None, use_ssl='True', attachments=None)¶
Send a message via SMTP
server-warning-message: smtp.send_msg: - name: 'This is a server warning message' - profile: my-smtp-account - subject: 'Message from Salt' - recipient: email@example.com - sender: firstname.lastname@example.org - use_ssl: True - attachments: - /var/log/syslog - /var/log/messages
The message to send via SMTP
Generated on March 23, 2023 at 04:03:46 UTC.
You are viewing docs for the latest stable release, 3005.1. Switch to docs for the previous stable release, 3004.2, or to a recent doc build from the master branch.