NAME
oEdtk::Messenger - send a simple notification email
SYNOPSIS
use oEdtk::Messenger qw(oe_send_mail);
oe_send_mail('dest@example.com', 'Job report', "done\n");
DESCRIPTION
A one-function helper to send a short notification email. The SMTP host and the sender address come from the MAIL section of the oEdtk configuration (read through oEdtk::Config), and the subject is prefixed with the current EDTK_TYPE_ENV.
FUNCTIONS
oe_send_mail
oe_send_mail($to, $subject, @body);
Build and send an email to $to (defaulting to EDTK_MAIL_SENDER) with the given $subject (prefixed with EDTK_TYPE_ENV, defaulting to $0) and body. When the configured EDTK_MAIL_SMTP is the literal string warn, the message is printed instead of being sent, which is convenient for testing. Dies when the send fails.
AUTHOR
The oEdtk team.