Leosac
0.8.0
Open Source Access Control
|
#include <SMTPServiceImpl.hpp>
Public Member Functions | |
SMTPServiceImpl (SMTPModule &) | |
virtual void | async_send (const MailInfo &mail) override |
Send a message to the mailer service (if any) to enqueue an email. More... | |
virtual void | async_send_to_admin (const MailInfo &mail) override |
Similar to send, but add the leosac administrator email to the recipients' list. More... | |
Public Member Functions inherited from Leosac::SMTPService | |
virtual | ~SMTPService ()=default |
Private Attributes | |
SMTPModule & | smtp_ |
Definition at line 31 of file SMTPServiceImpl.hpp.
SMTPServiceImpl::SMTPServiceImpl | ( | SMTPModule & | m | ) |
Definition at line 27 of file SMTPServiceImpl.cpp.
|
overridevirtual |
Send a message to the mailer service (if any) to enqueue an email.
This method doesn't block: it doesn't wait for mail acknowledgment that the mail as been queue, nor does it wait for the ZeroMQ connection to the message bus.
Implements Leosac::SMTPService.
Definition at line 32 of file SMTPServiceImpl.cpp.
|
overridevirtual |
Similar to send, but add the leosac administrator email to the recipients' list.
The admin email is fetched from the environment: LEOSAC_ADMIN_MAIL
Implements Leosac::SMTPService.
Definition at line 37 of file SMTPServiceImpl.cpp.
|
private |
Definition at line 41 of file SMTPServiceImpl.hpp.