В 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
🚀🚀Raining Profits in the Premium Group
🎯🎯#PHA/USDT has covered all the targets to give an amazing profit of 557% for all Premium Members
👁🗨Contact @futurechief to enter the premium group & make daily gains on Futures as well as Spot Market
#PHA/USDT analysis :
#PHA has experienced a breakout followed by a retest of the support zone. The price is now anticipated to continue its downward trajectory and test lower levels. This bearish outlook is supported by the breakout and retest pattern, suggesting a potential continuation of the downtrend.
TF : 4H
Entry : $0.1465
Target : $0.1146
SL : $0.1642