В 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
#FLM/USDT analysis :
#FLM is forming higher highs (HHs) and higher lows (HLs) along the trendline support. The price has recently swept through the swing low stop losses and is now expected to move upward, resuming its bullish direction to test the swing high resistance level.
TF : 2H
Entry : $0.0423
Target : $0.0445
SL : $0.0409
#FLM/USDT analysis :
#FLM is currently in a bearish trend on the higher time frame. A retracement towards the 200 EMA is anticipated as the price forms a higher high structure. It is expected to move upward and test previous highs.
TF : 1H
Entry : $0.0584
Target : $0.0636
SL : $0.0560
#FLM/USDT analysis :
#FLM is currently in a downtrend, trading below the 200 EMA. The price is consolidating sideways within a support and resistance zone. It is currently facing rejection at the resistance zone and is expected to decline from this point, testing the support zone.
TF : 1D
Entry : $0.0620
Target : $0.0500
SL : $0.0700
#FLM🧐
👉EMA Confluence
👉Failure Swing
👉MACD
The second chart fully and automatically generated by our algorithm.
All drawings are based on only mathematical values and calculations instead of emotions.
Interested?
Check out -> www.coinlegs.com / www.legslabs.com