Leosac  0.8.0
Open Source Access Control
Leosac::Module::SMTP::SMTPServiceImpl Class Reference

#include <SMTPServiceImpl.hpp>

+ Inheritance diagram for Leosac::Module::SMTP::SMTPServiceImpl:
+ Collaboration diagram for Leosac::Module::SMTP::SMTPServiceImpl:

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

SMTPModulesmtp_
 

Detailed Description

Definition at line 31 of file SMTPServiceImpl.hpp.

Constructor & Destructor Documentation

◆ SMTPServiceImpl()

SMTPServiceImpl::SMTPServiceImpl ( SMTPModule m)

Definition at line 27 of file SMTPServiceImpl.cpp.

Member Function Documentation

◆ async_send()

void SMTPServiceImpl::async_send ( const MailInfo mail)
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.

◆ async_send_to_admin()

void SMTPServiceImpl::async_send_to_admin ( const MailInfo mail)
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.

Member Data Documentation

◆ smtp_

SMTPModule& Leosac::Module::SMTP::SMTPServiceImpl::smtp_
private

Definition at line 41 of file SMTPServiceImpl.hpp.


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