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: admins@example.com
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: admin@example.com
    - sender: admin@example.com
    - use_ssl: True
    - attachments:
        - /var/log/syslog
        - /var/log/messages
The message to send via SMTP
Generated on September 18, 2025 at 19:37:48 UTC.
You are viewing docs for the previous stable release, 3006.16. Switch to docs for the latest stable release, 3007.8, or to a recent doc build from the master branch.
© 2025 VMware, Inc. | Privacy Policy