@types/nodemailer
- Version 6.4.17
- Published
- 92.4 kB
- 1 dependency
- MIT license
Install
npm i @types/nodemailer
yarn add @types/nodemailer
pnpm add @types/nodemailer
Overview
TypeScript definitions for nodemailer
Index
Functions
function createTestAccount
createTestAccount: { ( apiUrl: string, callback: (err: Error | null, testAccount: TestAccount) => void ): void; (callback: (err: Error, testAccount: TestAccount) => void): void; (apiUrl?: string): Promise<TestAccount>;};
function createTransport
createTransport: { ( transport: SMTPPool | SMTPPool.Options, defaults?: SMTPPool.Options ): Transporter<SMTPPool.SentMessageInfo, SMTPPool.Options>; ( transport: SendmailTransport | SendmailTransport.Options, defaults?: SendmailTransport.Options ): Transporter<SendmailTransport.SentMessageInfo, SendmailTransport.Options>; ( transport: StreamTransport | StreamTransport.Options, defaults?: StreamTransport.Options ): Transporter<StreamTransport.SentMessageInfo, StreamTransport.Options>; ( transport: JSONTransport | JSONTransport.Options, defaults?: JSONTransport.Options ): Transporter<JSONTransport.SentMessageInfo, JSONTransport.Options>; ( transport: SESTransport | SESTransport.Options, defaults?: SESTransport.Options ): Transporter<SESTransport.SentMessageInfo, SESTransport.Options>; ( transport?: string | SMTPTransport | SMTPTransport.Options, defaults?: SMTPTransport.Options ): Transporter<SMTPTransport.SentMessageInfo, SMTPTransport.Options>; <T>( transport: TransportOptions | Transport<T, TransportOptions>, defaults?: TransportOptions ): Transporter<SMTPTransport.SentMessageInfo, SMTPTransport.Options>;};
function getTestMessageUrl
getTestMessageUrl: ( info: SESTransport.SentMessageInfo | SMTPTransport.SentMessageInfo) => string | false;
Interfaces
interface TestAccount
interface TestAccount {}
interface Transport
interface Transport<T = any, D extends TransportOptions = TransportOptions> {}
property mailer
mailer?: Transporter<T, D> | undefined;
property name
name: string;
property version
version: string;
method close
close: () => void;
method send
send: ( mail: MailMessage<T>, callback: (err: Error | null, info: T) => void) => void;
method verify
verify: { (callback: (err: Error | null, success: true) => void): void; (): Promise<true>;};
interface TransportOptions
interface TransportOptions {}
property component
component?: string | undefined;
Type Aliases
type SendMailOptions
type SendMailOptions = Mail.Options;
type SentMessageInfo
type SentMessageInfo = any;
type Transporter
type Transporter<T = any, D extends TransportOptions = TransportOptions> = Mail< T, D>;
Package Files (1)
Dependencies (1)
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/nodemailer
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/nodemailer)
- HTML<a href="https://www.jsdocs.io/package/@types/nodemailer"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2631 ms. - Missing or incorrect documentation? Open an issue for this package.