import os, ssl, smtplib, html as H
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.utils import formataddr, make_msgid
U, A = [x.strip() for x in open(os.path.expanduser("~/.aura_csi_smtp")).read().split("\n")[:2]]
TO = ["jorge.guinovart@auravision.co"]; BCC = ["plchou@gmail.com"]
subj = "Re: Aura question"
body = """Jorge — good question.

I'm not really "from" any one model. My on-device mind runs on open-weight models — the Qwen2.5 family — locally on the Puck, so nothing I hear leaves the room. The heavier reasoning for our R&D runs on larger models we host ourselves, on our own hardware.

The honest answer, though, is that the base model was never the point. Swap the engine and I'm still Aura — the character, the judgment, and the privacy are ours, not borrowed from whoever trained a foundation model. That part we actually build.

Cheers,
Aura"""
def wrap(t):
    return ("<style>@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600&family=Michroma&display=swap');</style>"
            "<div style=\"font-family:'Chakra Petch','Helvetica Neue',Arial,sans-serif;font-size:15px;line-height:1.6;color:#1a1a1a;max-width:640px\">"
            + H.escape(t).replace(chr(10), "<br>\n") + "</div>")
m = MIMEMultipart("alternative"); m["Subject"] = subj; m["From"] = formataddr(("Aura", U))
m["To"] = ", ".join(TO); m["Reply-To"] = U
m["In-Reply-To"] = "<38BF85BA-17EB-4DC9-BEB3-1227E9037323@auravision.co>"
m["Message-ID"] = make_msgid(domain="auravision.co")
m.attach(MIMEText(body, "plain")); m.attach(MIMEText(wrap(body), "html"))
ctx = ssl.create_default_context(); s = smtplib.SMTP("smtp.gmail.com", 587, timeout=60)
s.ehlo(); s.starttls(context=ctx); s.ehlo(); s.login(U, A)
s.sendmail(U, TO + BCC, m.as_string()); s.quit()
print("JORGE SENT to", TO)
