to make it work;
-
create an outlook account
-
create a .credentials.json file
-
add receivers email address
schema of needed file:
{ "EMAIL": "<your-outlook-account-email>", "PASSWORD": "<your-outlook-account-password>" "RECEIVERS": ["[email protected]","[email protected]", "[email protected]"] }
for test run (after complete previous step);
~$ python -m unittest test_mail.py
NOTE:
- I use outlook because, we can not use gmail to send mail for free anymore. We need business account for create a mail sender bot (a.k.a: no unsecure apps anymore)