Class Transport

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(type: string, options?: any): Transport

Parameters

  • type: string
  • options?: any optional

Returns

Transport

Properties

public options: Object

public transportType: string

public static transports: { SMTP: Transport; SES: Transport; SENDMAIL: Transport; STUB: Transport; }

public transports.SENDMAIL: Transport

public transports.SES: Transport

public transports.SMTP: Transport

public transports.STUB: Transport

Methods

public close(callback?: (err: Error) => any): any

Parameters

  • callback?: (err: Error) => any optional

Returns

any

public sendMail(message: MailComposer, callback?: (err: Error) => any): any

Parameters

  • message: MailComposer
  • callback?: (err: Error) => any optional

Returns

any

public sendMailWithTransport(emailMessage: MailComposer, callback?: (err: Error) => any): any

Parameters

  • emailMessage: MailComposer
  • callback?: (err: Error) => any optional

Returns

any

public send_mail(message: MailComposer, callback?: (err: Error) => any): any

Parameters

  • message: MailComposer
  • callback?: (err: Error) => any optional

Returns

any

public useDKIM(dkim: DKIMOptions)

Parameters