external or local smtp

This commit is contained in:
2025-01-28 12:33:38 +08:00
parent ce8e26f262
commit d449acdbb5
2 changed files with 32 additions and 14 deletions
+8 -1
View File
@@ -1,2 +1,9 @@
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif'}
MAX_FILE_SIZE = 5 * 1024 * 1024 # 5 MB
MAX_FILE_SIZE = 5 * 1024 * 1024 # 5 MB
USE_EXTERNAL_SMTP = False
SMTP_SERVER = 'smtp.example.com'
SMTP_PORT = 587
SMTP_USE_TLS = True
SMTP_SENDER_EMAIL = 'your_email@example.com'
SMTP_SENDER_PASSWORD = 'your_email_password'