Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SMTP

Send the message to the e-mail SMTP credentials and e-mail boxes described in the drivers.smtp config

example
mutation {
  send(user: "user", type: "SMTP", body: "e-mail")
}
example
mutation {
  send(user: "user", type: "EMAIL", body: "e-mail")
}

Hierarchy

Index

Constructors

constructor

Properties

Readonly body

body: string

Methods

change

  • change(status: Status): Promise<void>

run

  • run(): Promise<number>
  • Start delivering the message Method creates new message in the DB with the status CREATED and handles all errors

    Returns Promise<number>

start

  • start(): Promise<void>

Static getHistory

  • getHistory(message: string | number): Promise<any>

Static getMessage

  • getMessage(id: string | number): Promise<any>
  • Get the message information with all status changes This method explicitly gets the history of the statuses for the speed-up

    Parameters

    • id: string | number

    Returns Promise<any>

Static getMessages

  • getMessages(): Promise<any>

Static getMessagesByUser

  • getMessagesByUser(name: string): Promise<any>

Static getUser

  • getUser(name: string): Promise<any>

Static getUsers

  • getUsers(): Promise<any>

Generated using TypeDoc