В 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
Give your pre-loved items a new lease of life!
Let's do our part and pass on the love in the cycle of joy. 🧸📦
Visit go.gov.sg/donate-resell-repair for the list of donation, resale and repair channels.
#Donate#SustainableSG#TowardsZeroWaste#LunarNewYear2024
🥳 Поддержите нас
🥳
Выразите свою любовь небольшим пожертвованием! Каждый вклад помогает нам доставлять вам больше улыбок. Спасибо за вашу поддержку! 😇
#donate#support#gift#ton
Hello Learners..
Have a small request to all of you.
As you can see our web hosting plan is ended. And we're providing a 100% paid free courses for you.
If you guys like our services & wanted to continue to get in touch then courseunity needs your help.
Donate a little vibe :
paypal.me/adventurepatel
GPay :
er.adventurepatel@okaxis
🙏 Thanks for the support 🙏
#donate#donatetoday#donationsneeded#donatenow#donanım
#TaxTip Enjoy tax deductions of 2.5 times the qualifying donation amount in Year of Assessment 2023 when you donate to any approved Institution of a Public Character (IPC) by 31 Dec 2022!
You will not need to declare the donation amount in your income tax return as tax deductions for qualifying donations will be automatically reflected in your tax assessments based on information from the IPC.
Details and qualifying conditions: https://www.iras.gov.sg/taxes/other-taxes/charities/donations-tax-deductions
#iras#sg#taxes#taxtip#reliefs#donate#donations