Datacenter build and management service
https://github.com/joyent/conch-api/blob/master/lib/Conch/Plugin/Mail.pm
Helper methods for sending emails.
Sets up the helpers.
These methods are made available on the $c
object (the invocant of all controller methods,
and therefore other helpers).
$c->send_mail(
template_file => $filename, # file in templates/email, without extension
# OR
template => $template_string,
# OR
content => $raw_content,
To => $to_email, # defaults to stashed 'target_user'
From => $from_email, # defaults to stashed 'user'
Subject => $subject,
# ... all additional arguments are passed to the template renderer ...
);
Given a list of user records, returns a string suitable to be
used in a To
header, comprising names and email addresses.
Copyright Joyent, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.