smtp_send
Send an email via SMTP.
- smtp_send:
host: smtp.example.com
port: 587
user: "{{ smtp_user }}"
password:
secret_env: SMTP_PASSWORD
from: "robot@example.com"
to:
- "manager@example.com"
cc:
- "team@example.com"
subject: "Daily Report {{ today }}"
body: "Please find the report attached."
attachments:
- "output/report_{{ today }}.xlsx"
tls: starttls # starttls | ssl | none (default: starttls)
imap_receive
Fetch emails from an IMAP mailbox.