is_configured (connectors/email_connector.py)

Sovereign-OS · sovereign_os/connectors/email_connector.py · python · MIT
email

SMTP email connector with mandatory dry-run mode, env-driven config, injectable SMTP for testing, and structured result returns.

# Source: https://github.com/Justin0504/Sovereign-OS | License: MIT | Copyright 2026 Aojie Yuan
# Provided via justclaw.it.com; keep this notice with the code.
"""
send_email connector — the concrete implementation behind the `send_email`
connector spec, used by the email delivery category to actually send a drafted
email. Reuses the SMTP configuration of notifications/dispatcher.

Money/reputation-bearing (it sends real mail), so it is DRY-RUN by default and
only sends when live=True (env SOVEREIGN_EMAIL_LIVE=true). In dry-run it logs the
intended message and returns {"sent": False, "dry_run": True}.

Env: SOVEREIGN_SMTP_HOST, SOVEREIGN_SMTP_PORT (587), SOVEREIGN_SMTP_USER,
SOVEREIGN_SMTP_PASS.
"""

from __future__ import annotations

import logging
import os
import smtplib
from email.mim

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key