В 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
#POND/USDT analysis :
#POND has shown a strong recovery from the support zone following a significant decline of -77% from its all-time high (ATH). The price has also successfully broken above the trendline that was previously acting as resistance, indicating a likely continuation of its bullish momentum toward reaching new all-time highs. A potential gain of +120% is anticipated from the current levels.
TF : 1W
Entry : $0.01966
Target : $0.04240
SL : $0.01358
#POND👀
CoinLegs algorithm detected Symmetrical Triangle at 1h chart 📊
Seems like we got a breakout. Stop Loss below the trendline 🛑
Target levels are on the charts.
#POND result
3rd target achieved in just 12 days ✅✅✅
One more huge quick profit 21.9%🤑💰🤑
👉 Still thinking? The more you wait more you lose profit
☎️ Contact @MichaelStrategiesVip for membership and grab next breakout signal
#POND result
1st target achieved in just 1 day✅
One more quick profit 7%💰🤑
👉 More quick profit signals available in premium channel. Hurry up 🏃♂👇
☎️ Contact @MichaelStrategiesVip