Options
All
  • Public
  • Public/Protected
  • All
Menu
version

1.0.0

since

1.0.5

Hierarchy

  • MailConfigBase
    • MailConfig

Index

Constructors

constructor

  • new MailConfig(host: string, port: number, ssl: boolean, user: string, password: string): MailConfig
  • version

    1.0.0

    since

    1.0.5

    Parameters

    • host: string
    • port: number
    • ssl: boolean
    • user: string
    • password: string

    Returns MailConfig

Properties

Host

Host: string
version

1.0.0

since

1.0.5

Password

Password: string
version

1.0.0

since

1.0.5

Port

Port: number
version

1.0.0

since

1.0.5

SSL

SSL: boolean
version

1.0.0

since

1.0.5

User

User: string
version

1.0.0

since

1.0.5

Methods

CreateTransport

  • CreateTransport(): Transporter<any>
  • create reusable transporter object using the default SMTP transport

    version

    1.0.0

    since

    1.0.5

    Returns Transporter<any>

Verify

  • Verify(): Promise<boolean>
  • version

    1.0.0

    version

    2018-08-17

    since

    1.0.5

    Returns Promise<boolean>

Static GetEmailAddressWithName

  • GetEmailAddressWithName(name: string, address: string): string
  • ("Kaven", "kaven@wuwenkai.com") => "Kaven kaven@wuwenkai.com"

    version

    2018-08-18 09:02:18.666

    since

    1.1.5

    Parameters

    • name: string
    • address: string

    Returns string

Static IsEmailAddressValid

  • IsEmailAddressValid(email: string, unicode?: boolean): boolean

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Interface
  • Interface with type parameter
  • Class
  • Method
  • Enumeration
  • Inherited constructor

Generated using TypeDoc