В 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
⚔️ The energy is soaring on Day 4 of #Tbilisi2025!
The Women’s Individual Foil – Table of 32 is packed with 🔥 intensity, emotion, and precision!
Who’s moving closer to the podium? 🥇🤺
🔴 Watch it LIVE: fencingtv.com
📊 Full results: bit.ly/44FJFbo
#FCA#FIE#FencingWorldChampionships#Fencing#Foil#Escrime#Esgrima
Cadet Asian Cup 2025 — Tashkent, Uzbekistan 🇺🇿
✅ Day 1 Results — Cadet Men’s Foil
1️⃣ ALBUSAIDI Ali 🇴🇲
2️⃣ CHEONG Pak Kio 🇲🇴
3️⃣ YETSEU Mansur 🇰🇿
3️⃣ TOKANOV Yevgeniy 🇰🇿
👏 Congratulations to the winners and all participants!
👉 Stay tuned and follow us for daily updates!
#CadetAsianCup#FencingAsia#FCA#FIE#Tashkent2025#Foil#Fencing#AsiaFencing
🔥 The action is on fire at #Tbilisi2025!
Men’s Sabre Table of 64 is delivering fierce battles and electric moments! ⚡🤺
Who will slice their way to the top? 🏆
🔴 Watch LIVE: fencingtv.com
📊 Full results: bit.ly/44FJFbo
#FCA#FIE#FencingWorldChampionships#Fencing#Sabre#Escrime#Esgrima#Foil#Epee