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 " virtual void async_send(const MailInfo &mail) override
Send a message to the mailer service (if any) to enqueue an email.
This is the header file for a generated source file, GitSHA1.cpp.
SMTPServiceImpl(SMTPModule &)
std::string green(const T &in)
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.
std::string cyan(const T &in)
void async_send_mail(const MailInfo &mail)
Asynchronously and thread-safely send an email.