2026-02-01: email system, security docs, reflecții, insights
- Email: process + send tools - Security: documentație securizare Clawdbot - KB: coaching, youtube notes (Monica Ion, ClawdBot 10x) - Reflecții: audit relații/bani, pattern 'nu merit', dizolvare vină - Insights: 2026-02-01 + backlog + content recomandat - Memory: heartbeat state, reguli comunicare
This commit is contained in:
@@ -1,21 +1,33 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Simple SMTP email sender for moltbot@romfast.ro
|
||||
Simple SMTP email sender for echo@romfast.ro
|
||||
Usage: python3 email_send.py "recipient@email.com" "Subject" "Body text"
|
||||
"""
|
||||
|
||||
import smtplib
|
||||
import ssl
|
||||
import sys
|
||||
import os
|
||||
from email.mime.text import MIMEText
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
from pathlib import Path
|
||||
|
||||
# SMTP Configuration
|
||||
SMTP_SERVER = "mail.romfast.ro"
|
||||
# Load .env file
|
||||
env_path = Path(__file__).parent.parent / '.env'
|
||||
if env_path.exists():
|
||||
with open(env_path) as f:
|
||||
for line in f:
|
||||
line = line.strip()
|
||||
if line and not line.startswith('#') and '=' in line:
|
||||
key, value = line.split('=', 1)
|
||||
os.environ.setdefault(key, value)
|
||||
|
||||
# SMTP Configuration from environment
|
||||
SMTP_SERVER = os.environ.get('EMAIL_SERVER', 'mail.romfast.ro')
|
||||
SMTP_PORT = 465
|
||||
SMTP_USER = "moltbot@romfast.ro"
|
||||
SMTP_PASS = "parola281234"
|
||||
FROM_NAME = "Echo (Moltbot)"
|
||||
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:
|
||||
"""Send an email via SMTP SSL"""
|
||||
|
||||
Reference in New Issue
Block a user