В 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
🚀 Huge profits are made in the Premium Group
🎯🎯#ONT/USDT has covered all the target to give a Profit of 220% to all Premium Members
👁🗨Contact @futurechief to enter the Premium Futures & SPOT Group for daily gain
#ONT/USDT analysis :
#ONT has successfully broken out and is currently testing a previously respected resistance zone. The price has rebounded from this zone, and it is expected to resume its upward momentum, aiming to test previous highs.
TF : 1D
Entry : $0.2595
Target : $0.3900
SL : $0.2050
#ONT/USDT analysis -
#ONT be in downtrend trading below 200ema. After a corrective pullback, price retraced to 200ema and getting rejected. It is expected to drop from current level and test previous lows.
TF : 4H
Entry : $0.2013
Target : $0.1597
SL : $0.2125