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.
Methods
mail()
message?,
View?,
context?,
Compile the given view's template using an instance as context, then email the rendered HTML given the configuration.