FastAPI router for managing SMTP configuration and testing connections.
# Source: https://github.com/Anil-matcha/open-agent-email | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works # Provided via justclaw.it.com; keep this notice with the code. import asyncio import datetime from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.ext.asyncio import AsyncSession from sqlalchemy import select from app.database import get_db from app.models import SmtpConfig from app.schemas import SmtpConfigUpdate, SmtpConfigResponse, SmtpTestRequest, SmtpTestResponse from app.services.email_service import _send_smtp_sync from app.security import require_operator from app.services.smtp_secrets import decrypt_password, encrypt_password from app.config import settings router = APIRouter(prefix="/v1/settings", tags=["Settin ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key