В 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
Flossie is the oldest living cat in the world at 30 years old. She was born on 29 December 1995. She is a British tortoiseshell rescued as a kitten from a feral cat colony in England. She is deaf and has limited eyesight. Flossie lives in Orpington, England, with her owner Victoria Green.
🐱🎂🏆
[Read more]
@googlefactss
#Flossie#OldestCat#GuinnessWorldRecords#CatLife#RecordHolder
· · • • • •❄️• · · INSTAGRAM· · •❄️• • • • · ·
⇝•❄️• El gato es el animal más popular en Instagram ya que a día de hoy existen casi 450 millones de publicaciones con hashtags como #cat, #gato, #catlover o #catlife. Muy por detrás le sigue el perro, con una media de 340 millones de publicaciones con etiquetas como #dog, #doglover o #perrosfelices.
· · • • • • • · · · · • • • ☃️• • • · · · · • • • • • · ·