В 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
CRPF QRT teams have taken over Security of Nabanna & other Key Govt HQs in West Bengal amid the power transition and have sealed all movements of Government Files, orders from Union Home Ministry
#Policy
West Bengal Chief Secretary orders all Department Secretaries and Head of Offices to ensure that no important paper or file is removed or damaged or taken out from the offices. #Policy
🚨 Indian Govt invokes Force Majeure for contracts hit by West Asia disruptions
👉🏻 West Asia situation treated as war-like event for contracts
👉🏻 Contractors can claim relief for delays linked to disruptions
👉🏻 Govt may grant 2–4 month extension case-by-case
👉🏻 No penalties or liquidated damages for eligible delays
👉🏻 Applies across goods, services & works contracts
👉🏻 Valid only if no prior default before 27 Feb 2026
👉🏻 Contracts delayed beyond 90 days may be terminated without penalty #Policy