Property | Type | Description | |
---|---|---|---|
$mailService | AcMailer\Service\MailServiceInterface |
Method | Description | |
---|---|---|
__construct ( AcMailer\Service\MailServiceInterface $mailService ) | ||
__invoke ( null | string | Zend\View\Model\ViewModel | array $bodyOrConfig = null, null | string $subject = null, null | array $to = null, null | string | array $from = null, null | array $cc = null, null | array $bcc = null, null | array $attachments = null, null | array $replyTo = null, $encoding = null ) : AcMailer\Service\MailServiceInterface | AcMailer\Result\ResultInterface | If no arguments are provided, the mail service is returned. | |
getMailService ( ) : AcMailer\Service\MailServiceInterface | ||
setMailService ( AcMailer\Service\MailServiceInterface $mailService ) |
Method | Description | |
---|---|---|
applyArgsToMailService ( array $args ) | Applies the arguments provided while invoking this plugin to the MailService, discarding any previous configuration | |
applyArrayArgs ( array $args, string $key ) | ||
normalizeMailArgs ( array $args ) : array | Normalizes the arguments passed when invoking this plugin so that they can be treated in a consistent way |
public __construct ( AcMailer\Service\MailServiceInterface $mailService ) | ||
$mailService | AcMailer\Service\MailServiceInterface |
public __invoke ( null | string | Zend\View\Model\ViewModel | array $bodyOrConfig = null, null | string $subject = null, null | array $to = null, null | string | array $from = null, null | array $cc = null, null | array $bcc = null, null | array $attachments = null, null | array $replyTo = null, $encoding = null ) : AcMailer\Service\MailServiceInterface | AcMailer\Result\ResultInterface | ||
$bodyOrConfig | null | string | Zend\View\Model\ViewModel | array | |
$subject | null | string | |
$to | null | array | |
$from | null | string | array | |
$cc | null | array | |
$bcc | null | array | |
$attachments | null | array | |
$replyTo | null | array | |
return | AcMailer\Service\MailServiceInterface | AcMailer\Result\ResultInterface |
protected applyArgsToMailService ( array $args ) | ||
$args | array |
protected applyArrayArgs ( array $args, string $key ) | ||
$args | array | |
$key | string |
public getMailService ( ) : AcMailer\Service\MailServiceInterface | ||
return | AcMailer\Service\MailServiceInterface |
protected normalizeMailArgs ( array $args ) : array | ||
$args | array | |
return | array |
public setMailService ( AcMailer\Service\MailServiceInterface $mailService ) | ||
$mailService | AcMailer\Service\MailServiceInterface |