Skip to main content
Module

x/saur/mailer.js>default

a rapid web development framework for deno
Latest
class default
import { default } from "https://deno.land/x/saur@v0.0.1/mailer.js";

Mailers send HTML-rendered emails to users based on predefined information. They fill the same role as Controllers, except instead of handling the request/response cycle of HTTP, they render their results to an email message. Mailers use the SMTP configuration found in App.config.smtp to configure the SMTP client when sending mails, and are capable of rendering Views (and, subsequently, Templates) just like controllers can.

Constructors

new
default(app)

Properties

readonly
request

Methods

mail(
message?,
View?,
context?,
)

Compile the given view's template using an instance as context, then email the rendered HTML given the configuration.

Static Properties

layout: string

Static Methods

deliver(
app,
message,
...args,
)

Deliver a given message using the provided args.