import {Card, CardContent, CardDescription, CardHeader, CardTitle} from '@plunk/ui'; import {Mail, Server} from 'lucide-react'; import {ApiKeyDisplay} from './ApiKeyDisplay'; import {useActiveProject} from '../lib/contexts/ActiveProjectProvider'; interface SmtpSettingsProps { smtpConfig: { enabled: boolean; domain?: string; portSecure?: number; portSubmission?: number; }; } export function SmtpSettings({smtpConfig}: SmtpSettingsProps) { const {activeProject} = useActiveProject(); if (!smtpConfig.enabled) { return ( SMTP Server SMTP server is not configured on this instance

The SMTP relay server is not enabled. Contact your administrator to enable SMTP support for sending emails via standard mail clients.

); } const isDevelopment = smtpConfig.domain === 'localhost'; return (
{isDevelopment && ( Development Mode

SMTP server is running in development mode without TLS encryption. Only use for local testing. For production, configure the SMTP_DOMAIN{' '} environment variable and mount TLS certificates.

)} SMTP Server Configuration Send emails through standard email clients using SMTP protocol. Works with Outlook, Thunderbird, and any SMTP-compatible application.
{/* Server Details */}
{smtpConfig.domain}

Use this hostname in your email client configuration

{smtpConfig.portSubmission}

{isDevelopment ? 'Runs without encryption in development' : 'Submission port with STARTTLS encryption'}

{smtpConfig.portSecure}

{isDevelopment ? 'Requires TLS certificates in production' : 'Implicit TLS encryption'}

{/* Credentials */}

Authentication Credentials

plunk

Always use "plunk" as the username

{activeProject && ( )}
); }