Email support for applauncher. This is a wrapper of the python standard library so there not any dependecies
pip install email_bundle
Then add to your main.py
import email_bundle
bundle_list = [
email_bundle.EmailBundle(),
]
email:
username: myuser
password: mypass
smtp_host: localhost
smtp_port: 1025
use_ttls: True
use_authentication: True
Create a file for your tasks, for example "tasks.py" (you can create any files you want always you register it later)
import inject
from email_bundle import EmailSender
es = inject.instance(EmailSender)
# Sending a simple text email
es.send_email("My subject","maxpowel@gmail.com", "email_receiver@email.com", "Hi man!")
# Sending a html email
es.send_email("My subject", "maxpowel@gmail.com", "receiver@gmail.com", "<strong>This is my html message!!</strong>", mime="html")