Overview
Classes: Configuration
Types Aliases: ExceptionPtr, MailMessagePtr, SMTPClientSessionPtr
Functions: MailDeliveryHandle, MailDeliveryServiceImpl
Classes
struct Configuration
Types Aliases
ExceptionPtr
using ExceptionPtr = Poco::SharedPtr < Poco::Exception >;
MailMessagePtr
using MailMessagePtr = Poco::SharedPtr < Poco::Net::MailMessage >;
SMTPClientSessionPtr
using SMTPClientSessionPtr = Poco::SharedPtr < Poco::Net::SMTPClientSession >;
The default implementation of the MailDeliveryService.
This implementation uses a Poco::Net::SMTPClientSession to deliver the emails. Emails are managed through a queue and sending is done in batches.
Enumerations
MailStatus
The mail message has been queued for delivery.
The mail message is being delivered to the SMTP server.
The mail message has been successfully delivered to the SMTP server.
The mail message could not be sent.
Functions
MailDeliveryHandle
explicit MailDeliveryHandle(
MailMessagePtr pMessage
);
Creates the MailDeliveryHandle.
MailDeliveryServiceImpl
MailDeliveryServiceImpl(
const Configuration & config,
Poco::Logger & logger
);
Creates the MailDeliveryServiceImpl using the given configuration and logger.
Variables
Ptr
class OSPMail_API MailDeliveryHandle :public Poco::Notification { public :using Ptr = Poco::AutoPtr < MailDeliveryHandle >;
This class contains status information about an email message delivery. It also provides events for asynchronous notification about delivery status.
messageDelivered
Poco::BasicEvent < const Ptr > messageDelivered;
Fired when the message was delivered successfully.
messageDelivering
Poco::BasicEvent < const Ptr > messageDelivering;
Fired when the message is about to be delivered.
messageFailed
Poco::BasicEvent < const Ptr > messageFailed;
Fired when sending the message has failed.