В 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
A car stops in front of the palace at night in a terrifying scene.in the year 2019 in Egypt, above shot, artist by Richard Tuschman Style --ar 16:9 --v 6.1
by mtcreation19
#vehicle
🐝 Prompt collection
#AutoLog#UK#Vehicle#Manager
Join the AutoLog - UK Vehicle Manager beta on ✈️#TestFlight
🔗 Link: https://testflight.apple.com/join/yPmgXjnF
Shared by Dimitri
These Stupid Trucks are Literally Killing Us | Not Just Bikes
One of these vehicles are designed to efficiently carry lots of useful stuff, while the other is designed to carry fragile egos.
———
好強的攻擊性
#Video#Transport#Vehicle#SUV#Urbanist#NJB
https://www.youtube.com/watch?v=jN7mSXMruEo