В 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
🔖McHenry urges Senate to pass FIT21 crypto bill before election
The United States House’s widely positive vote on the crypto-regulating FIT21 bill should be “a wake-up call” to the Senate to quickly pass it, says Rep. Patrick McHenry 💬
#Cryptotrader
#Cryptotwitter
#Cryptoinvestment
#Cryptocurrencyexchange
Crypto Highlights: Recent Developments
📈 K33 analysts have predicted the peak date of the bull run.
⚖️ Craig Wright received a conditional sentence for contempt of court.
💵 VC investors are leaving crypto, while crypto distances itself from VC investors.
📊 A Bitcoin crash at $100,000 led to over $1 billion in liquidations.
🐋 El Salvador expanded its Bitcoin purchases despite an IMF deal.
💬 Tornado Cash co-founder demands charges be dropped.
👾 Ilya Lichtenstein claims sole responsibility for the Bitfinex hack.
💰 Cryptopia clients received $225 million in assets from liquidators.
✅ SEC approved the first hybrid ETFs based on Bitcoin and Ethereum.
👁 German regulator ordered World to delete user data.
👀 Investors sued the team behind the HAWK token.
⚽️ An American football player will receive part of his salary in Bitcoin.
🚀 Cathy Wood confirmed her Bitcoin price prediction exceeds $1 million.
🤑 Colin Wu shared the success story of a 24-year-old crypto trader.
#K33#CraigWright#VC#Bitcoin#Liquidation#ElSalvador#TornadoCash#Bitfinex#Cryptopia#SEC#ETFs#Germany#HAWK#Football#CathyWood#CryptoTrader#CryptoNews#Investments#MarketTrends#CryptoRegulation#Blockchain