Send an e-mail via python3.
Attention: it must run via your own mail server, as Google has discontinued the service in 2024.
Copy notification_email.py
into your project folder
─ YourProject
─ main.py
─ notification_email.py
#!/usr/bin/python3
from notification_email import EmailNotification
if __name__ == "__main__":
EmailNotification(user='robot@domain.com', pwd='95*#D3&bBt*CVtdmwASVj@YvZu', smtp=['mail.domain.com', 25], receivers=['maxmustermann@gmail.com'], subject='Test E-Mail', body='E-Mail sent successfully.').send()