В Python есть удобный почтовый debug-сервер. Он поможет проверить работу почты вашего web-проекта на этапе разработки без необходимости настраивать внешние сервисы или взаимодействие с реальными серверами Google или Yandex. Этот сервер просто печатает все сообщения в консоль.
Таким образом удобно дебажить одноразовые ссылки активации или просто факт отправки письма по расписанию.
Запускается очень просто:
python3 -m smtpd -n -c DebuggingServer localhost:1025
Теперь настройте ваш проект на использование этого сервера. Например вот так настраивается Django:
# settings.py
if DEBUG:
EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
DEFAULT_FROM_EMAIL = '[email protected]'
#django#tricks
🇵🇸Newly released footage shared by a British recruit who served at aid distribution sites run by the #Gaza Humanitarian Foundation exposes the aid system designed by Israel in cooperation with the United States to humiliate Palestinians.
Nearly 2,000 Palestinians were killed at the foundation’s distribution points in incidents that included shooting “for fun,” according to the recruit.
@EuroMedHR
#Genocide#Aid#GHF#Starvation#Famine#US#Palestine
ZioNazi*** #Israeli"settlers"evil colonists are allowed by the #ZioNazi Israeli Government to destroy desperately needed humanitarian #aid coming from #Jordan to #Gaza.
These sicko “civilians” are destroying vital food aid to a #starving population, which is literally facing famine conditions which have been created by the actions of those very same #ZioNazis, and all while literally laughing about it and obviously having fun.
Getting the settlers to destroy the aid is a very evil and dishonest way for the #Zionist Israeli Government to deny aid to #Gaza while pretending to the International community that they are doing all they can to allow it in.
---------
***
Anyone wondering why I usually refer to Zionists as "ZioNazis" ......
........ well, now you know why!