Skip to main content
Module

x/denomailer/mod.ts>SMTPClient#send

A SMTP-Client implementation for deno (to send mails!)
Go to Latest
method SMTPClient.prototype.send
import { SMTPClient } from "https://deno.land/x/denomailer@1.5.3/mod.ts";

Sends a E-Mail with the correspondig config.

client.send({
  to: 'abc@example.com',
  cc: [
    'abc@example.com',
    'abc <abc@example.com>',
    {
      name: 'abc',
      mail: 'abc@example.com'
    }
  ],
  bcc: {
    abc: 'abc@example.com',
    other: 'abc@example.com'
  },
  from: 'me <abc@example.com>',
  replyTo: '<abc@example.com>',
  subject: 'example',
  content: 'auto',
  html: '<p>Hello World</p>',
  internalTag: 'newsletter',
  priority: 'low'
})

Parameters

config: SendConfig

Email config

Returns

Promise<void>

nothing (for now as this might change in the future!)