Alert emails through the operator's own SMTP server, set in the environment only. The credentials are never stored in the database, never returned by an API, never shown in the UI and never logged. /
// Source: https://github.com/crawlseo/crawlseo | License: MIT | Copyright 2026 crawlseo
// Provided via justclaw.it.com; keep this notice with the code.
/*
* Alert emails through the operator's own SMTP server, set in the
* environment only. The credentials are never stored in the database, never
* returned by an API, never shown in the UI and never logged.
*/
type Env = Record<string, string | undefined>;
export type SmtpConfig = {
host: string;
port: number;
/** TLS from the start (port 465). false: plain, then STARTTLS when the server offers it. */
secure: boolean;
/** Absent: the server takes mail without a login. */
auth: { user: string; pass: string } | null;
from: string;
};
/** The variables Settings names when email is not set up. */
export const SMTP_ENV_VAR
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key