Validates IMAP/SMTP credentials, reads SMTP port, and provides default SMTP host logic for generic mail integration.
// Source: https://github.com/oomol-lab/open-connector | 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 type { MailCredential } from "../../mail/imap-smtp/protocol.ts";
import type { MailRuntimeConfig } from "../../mail/imap-smtp/runtime.ts";
import { assertPublicHttpUrl, isPrivateNetworkAccessAllowed } from "../../core/request.ts";
import { ProviderRequestError } from "../provider-runtime.ts";
/**
* Generic IMAP/SMTP mailbox runtime configuration.
*
* Unlike the provider-specific mail integrations, the IMAP and SMTP hosts are
* supplied by the user, so any mailbox exposing IMAP over implicit TLS can be
* connected with an application password.
*/
export const generi
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key