drupflare/worker - v1.0.4
    Preparing search index...

    Function sendViaSmtp

    • Opens a submission session and sends one message through it. Not edgeport's one-shot send(), which dials cloudflare:sockets itself and so cannot be driven in the gate.

      Parameters

      • transport: {
            auth?: {
                mechanism: "PLAIN" | "LOGIN";
                password: string;
                username: string;
            };
            from: string;
            hostname: string;
            kind: "smtp";
            port: number;
            tls: "starttls"
            | "implicit"
            | "off";
        }
      • message: MailMessage
      • deps: MailDeps = DEFAULT_MAIL_DEPS

      Returns Promise<string>