File Information
Library: OSP/Mail
Package: Mail
Header: Poco/OSP/Mail/MailDeliveryServiceImpl.h
Description
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.
Inheritance
Direct Base Classes: MailDeliveryService, Poco::Runnable
All Base Classes: MailDeliveryService, Poco::OSP::Service, Poco::RefCountedObject, Poco::Runnable
Member Summary
Member Functions: closeSMTPClientSession, createSMTPClientSession, generateMID, isA, run, sendMessage, type
Inherited Functions: duplicate, isA, referenceCount, release, run, sendMessage, type
Nested Classes
struct Configuration
Types Aliases
Ptr
using Ptr = Poco::AutoPtr < MailDeliveryServiceImpl >;
SMTPClientSessionPtr
using SMTPClientSessionPtr = Poco::SharedPtr < Poco::Net::SMTPClientSession >;
Constructors
MailDeliveryServiceImpl
MailDeliveryServiceImpl(
const Configuration & config,
Poco::Logger & logger
);
Creates the MailDeliveryServiceImpl using the given configuration and logger.
Destructor
~MailDeliveryServiceImpl
Destroys the MailDeliveryServiceImpl.
Member Functions
isA
bool isA(
const std::type_info & otherType
) const;
sendMessage
MailDeliveryHandle::Ptr sendMessage(
MailMessagePtr pMessage
);
type
const std::type_info & type() const;
closeSMTPClientSession
void closeSMTPClientSession();
createSMTPClientSession
virtual SMTPClientSessionPtr createSMTPClientSession(
const Configuration & config
);
generateMID
std::string generateMID(
const std::string & clientHost
) const;
run
void run();
See also: Poco::Runnable::run()