@types/sendmail
TypeScript icon, indicating that this package has built-in type declarations

1.4.7 • Public • Published

Installation

npm install --save @types/sendmail

Summary

This package contains type definitions for sendmail (https://github.com/guileen/node-sendmail).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sendmail.

index.d.ts

declare namespace sendMailFactory {
    interface Options {
        logger?: {
            debug?: (() => void) | undefined;
            info?: (() => void) | undefined;
            warn?: (() => void) | undefined;
            error?: (() => void) | undefined;
        } | undefined;
        silent?: boolean | undefined;
        /** Default: False */
        dkim?:
            | boolean
            | {
                privateKey: string;
                keySelector: string;
            }
            | undefined;
        /** Default: False */
        devPort?: number | boolean | undefined;
        /** Default: localhost */
        devHost?: string | undefined;
        /** Default: 25 */
        smtpPort?: number | undefined;
        /** Default: -1 - extra smtp host after resolveMX */
        smtpHost?: string | number | undefined;
    }

    interface MailInput {
        from: string;
        sender?: string | undefined;
        to: string;
        cc?: string | undefined;
        bcc?: string | undefined;
        replyTo?: string | undefined;
        inReplyTo?: string | undefined;
        returnTo?: string | undefined;
        subject: string;
        type?: string | undefined;
        charset?: string | undefined;
        encoding?: string | undefined;
        id?: string | undefined;
        headers?: object | undefined;
        content?: string | undefined;
        text?: string | undefined;
        html?: string | undefined;
        attachments?:
            | Array<{
                type?: string | undefined;
                filename?: string | undefined;
                content?: any;
                path?: string | undefined;
                contentType?: string | undefined;
                encoding?: string | undefined;
            }>
            | undefined;
    }
}

type CallbackFn = (err: Error, domain: string) => void;

type SendMailFn = (mail: sendMailFactory.MailInput, callback: CallbackFn) => void;

declare function sendMailFactory(options: sendMailFactory.Options): SendMailFn;

export = sendMailFactory;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Saeid Ostad.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.4.71,550ts5.7
1.4.71,550ts5.6
1.4.71,550latest
1.4.71,550ts4.5
1.4.71,550ts4.6
1.4.71,550ts4.7
1.4.71,550ts4.8
1.4.71,550ts4.9
1.4.71,550ts5.0
1.4.71,550ts5.1
1.4.71,550ts5.2
1.4.71,550ts5.3
1.4.71,550ts5.4
1.4.71,550ts5.5
1.4.71,550ts5.8
1.4.4684ts3.6
1.4.4684ts3.7
1.4.4684ts3.8
1.4.4684ts3.9
1.4.4684ts4.0
1.4.4684ts4.1
1.4.4684ts4.2
1.4.4684ts4.3
1.4.4684ts4.4
1.4.371ts3.5
1.4.263ts2.2
1.4.263ts2.3
1.4.263ts2.4
1.4.263ts2.5
1.4.263ts2.6
1.4.263ts2.7
1.4.263ts2.8
1.4.263ts2.9
1.4.263ts3.0
1.4.263ts3.1
1.4.263ts3.2
1.4.263ts3.3
1.4.263ts3.4

Version History

VersionDownloads (Last 7 Days)Published
1.4.71,550
1.4.641
1.4.50
1.4.4684
1.4.371
1.4.263
1.4.10
1.4.00

Package Sidebar

Install

npm i @types/sendmail

Weekly Downloads

2,409

Version

1.4.7

License

MIT

Unpacked Size

6.63 kB

Total Files

5

Last publish

Collaborators

  • types