В 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
🚀 Experience the Freedom of Trading!
📉With SLEX, you can enjoy affordable trading with ZERO spread. Trade your favorite cryptocurrencies as BTC, ETH and XRP without worrying about high fees eating your profits!💱
💰Say goodbye to excessive trading costs and register on SLEX Now and get 20$ welcome bonus till official launch - 17 of August! 💼
#SLEX#Trading#ZeroSpread#CryptoExchange
Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter
🚀 SLEX Hits $10M Daily Trading Volumes Just 3 Days In! 🚀
📈Get ready to witness history in the making! Just three days after the official launch of the SLEX exchange, we're thrilled to announce an incredible milestone: our daily trading volumes have soared to an impressive 10 000 000 USDT!📊
❤️The energy and enthusiasm from traders and investors like you have propelled us to new heights. This phenomenal achievement underscores our platform's immense potential and our community's unwavering support!🌈
🤝We invite you to join SLEX platform, deposit your account, and enjoy zero-spread trading on the spot market!
#SLEX#CryptoTrading#zerospread#SLEXtrading
Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter