Leosac  0.8.0
Open Source Access Control
Leosac::SMTPService Class Referenceabstract

Reference interface for SMTP module. More...

#include <Mail.hpp>

+ Inheritance diagram for Leosac::SMTPService:

Public Member Functions

virtual ~SMTPService ()=default
 
virtual void async_send (const MailInfo &mail)=0
 Send a message to the mailer service (if any) to enqueue an email. More...
 
virtual void async_send_to_admin (const MailInfo &mail)=0
 Similar to send, but add the leosac administrator email to the recipients' list. More...
 

Detailed Description

Reference interface for SMTP module.

Note
It is expected that the service implementation is non-blocking and asynchronous.
All methods in this interface MUST be thread safe.

Definition at line 45 of file Mail.hpp.

Constructor & Destructor Documentation

◆ ~SMTPService()

virtual Leosac::SMTPService::~SMTPService ( )
virtualdefault

Member Function Documentation

◆ async_send()

virtual void Leosac::SMTPService::async_send ( const MailInfo mail)
pure virtual

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.

Implemented in Leosac::Module::SMTP::SMTPServiceImpl.

◆ async_send_to_admin()

virtual void Leosac::SMTPService::async_send_to_admin ( const MailInfo mail)
pure virtual

Similar to send, but add the leosac administrator email to the recipients' list.

The admin email is fetched from the environment: LEOSAC_ADMIN_MAIL

Implemented in Leosac::Module::SMTP::SMTPServiceImpl.


The documentation for this class was generated from the following file: