Update memory, root, tools (+1 ~4)

This commit is contained in:
Echo
2026-02-02 10:30:44 +00:00
parent a42aa44b7f
commit 02604f6d16
5 changed files with 149 additions and 16 deletions

View File

@@ -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: