DefaultSender
extends AutoService
in package
uses
IsActiveTrait
AutoService is a base-class for defining a service (in Civi's service-container).
Tags
Table of Contents
Constants
Properties
- $active : bool
Methods
- isActive() : bool
- onSend() : mixed
- setActive() : $this
- isTemporaryError() : bool
- Determine if an SMTP error is temporary or permanent.
- recordBounce() : mixed
Constants
BULK_MAIL_INSERT_COUNT
public
mixed
BULK_MAIL_INSERT_COUNT
= 10
Properties
$active
private
bool
$active
= TRUE
Methods
isActive()
public
isActive() : bool
Return values
boolonSend()
public
onSend(SendBatchEvent $e) : mixed
Parameters
- $e : SendBatchEvent
setActive()
public
setActive(bool $active) : $this
Parameters
- $active : bool
Return values
$thisisTemporaryError()
Determine if an SMTP error is temporary or permanent.
protected
isTemporaryError(string $message) : bool
Parameters
- $message : string
-
PEAR error message.
Return values
bool —TRUE - Temporary/retriable error FALSE - Permanent/non-retriable error
recordBounce()
protected
recordBounce(CRM_Mailing_BAO_MailingJob $job, FlexMailerTask $task, string $errorMessage) : mixed
Parameters
- $job : CRM_Mailing_BAO_MailingJob
- $task : FlexMailerTask
- $errorMessage : string