В 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
Our latest community spotlight is here! 🛠️🚀 This week we meet Almaz: Chemical engineering student, all-round creative thinker, and #buidler of WeaveWatcher and Arweave.Design 📢😎http://bit.ly/MeetAlmaz
Introducing the Buidl Contributor role 🤍
This role is for community members who actively help Buidlpad grow through community participation, support, boosts and engagement.
Contribute consistently to unlock future role-based rewards!
Join the Buidlpad Discord Community → http://discord.gg/buidlpad
▫️What is the Buidl Contributor Role?
Buidl Contributor is the next role in our series of Community Role Launches
This role recognizes users who actively support the Buidlpad community by contributing time, effort & presence.
It focuses on community participation & engagement, not capital.
▫️How to Get the Buidl Contributor Role?
🔹 Join the Buidlpad Discord: http://discord.gg/buidlpad
🔹 Verify yourself in #buidler-role (skip if you've already done this)
🔹 Choose the contributor role in #role-verify
🔹 Engage the Server Booster Role by Boosting the Server
🔹 Start contributing!
The alpha is to stay active in community channels and participate consistently in community activities
Roles are reviewed and rewards are calculated on consistent contributions.
How to verify and receive your roles
🔹 Log in at http://buidlpad.com
🔹 Link your Discord under your Profile
🔹 Join the Buidlpad Discord: http://discord.gg/buidlpad
🔹 Verify yourself in #buidler-verify
🔹 Select your region in #select-region
That’s it. Your verification is complete 💙
Or follow this tutorial ⬇️ Or DM : @gBuidl