|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
39 auto mail_copy = mail;
40 char *mail_addr = getenv(
"LEOSAC_ADMIN_MAIL");
43 mail_copy.to.insert(mail_copy.to.begin(), std::string(mail_addr));
46 WARN(
"Failed to add administrator as a recipient for email titled "
48 <<
" because no admin "
49 "email is configured. Please set the "
SMTPServiceImpl(SMTPModule &)
All modules that provides features to Leosac shall be in this namespace.
virtual void async_send_to_admin(const MailInfo &mail) override
Similar to send, but add the leosac administrator email to the recipients' list.
This is the header file for a generated source file, GitSHA1.cpp.
void async_send_mail(const MailInfo &mail)
Asynchronously and thread-safely send an email.
std::string green(const T &in)
virtual void async_send(const MailInfo &mail) override
Send a message to the mailer service (if any) to enqueue an email.
std::string cyan(const T &in)