Email notification
dadosfera.services.email_notification.send_notification
send_notification(server_smtp, port, from_email, app_password, to_email, subject, message)
Sends an email notification via SMTP TLS.
PARAMETER | DESCRIPTION |
---|---|
server_smtp
|
SMTP server.
TYPE:
|
port
|
SMTP server port.
TYPE:
|
from_email
|
Sender's email.
TYPE:
|
app_password
|
APP password.
TYPE:
|
to_email
|
Recipient's email(s).
TYPE:
|
subject
|
Email subject.
TYPE:
|
message
|
Email message body content.
TYPE:
|
Source code in dadosfera/services/email_notification.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|