PLCreateDefaultMailProvider

Data types

Description

PLCreateDefaultMailProvider returns the default IPDFlibMailProvider implementation for the platform

On Windows the provider sends through Collaboration Data Objects (CDO); on other platforms the function returns Nil and the caller must install a custom provider

The MailSendDemo uses the default provider and PLSanitizeAttachmentName without ever sending mail, because the demo request addresses a sink that records the message

Syntax

Delphi

Function PLCreateDefaultMailProvider: IPDFlibMailProvider;

Return value

The default provider instance, or Nil when the platform has no built-in transport

Remarks

The provider is reference-counted through the interface, so no explicit free is needed

See also

IPDFlibMailProvider, TPDFlibMailRequest, PLSanitizeAttachmentName