Update memory, root, tools (+1 ~4)
This commit is contained in:
@@ -25,10 +25,17 @@ if env_path.exists():
|
||||
os.environ.setdefault(key, value)
|
||||
|
||||
# SMTP Configuration from environment
|
||||
SMTP_SERVER = os.environ.get('EMAIL_SERVER', 'mail.romfast.ro')
|
||||
SMTP_PORT = 465
|
||||
SMTP_USER = os.environ.get('EMAIL_USER', 'echo@romfast.ro')
|
||||
SMTP_PASS = os.environ.get('EMAIL_PASSWORD', '')
|
||||
# Try Gmail first, fall back to romfast
|
||||
if os.environ.get('GMAIL_PASSWORD'):
|
||||
SMTP_SERVER = 'smtp.gmail.com'
|
||||
SMTP_PORT = 465
|
||||
SMTP_USER = os.environ.get('GMAIL_USER', 'mmarius28@gmail.com')
|
||||
SMTP_PASS = os.environ.get('GMAIL_PASSWORD', '')
|
||||
else:
|
||||
SMTP_SERVER = os.environ.get('EMAIL_SERVER', 'mail.romfast.ro')
|
||||
SMTP_PORT = 465
|
||||
SMTP_USER = os.environ.get('EMAIL_USER', 'echo@romfast.ro')
|
||||
SMTP_PASS = os.environ.get('EMAIL_PASSWORD', '')
|
||||
FROM_NAME = "Echo"
|
||||
|
||||
def send_email(to_email: str, subject: str, body: str, html: bool = False) -> dict:
|
||||
|
||||
Reference in New Issue
Block a user