class MailgunQueueMail in Mailgun 8
Queue the email for sending with Mailgun.
Plugin annotation
@Mail(
id = "mailgun_queue_mail",
label = @Translation("Mailgun mailer (queued)"),
description = @Translation("Sends the message using Mailgun with queue.")
)
Hierarchy
- class \Drupal\mailgun\Plugin\Mail\MailgunMail implements MailInterface, ContainerFactoryPluginInterface
- class \Drupal\mailgun\Plugin\Mail\MailgunQueueMail
Expanded class hierarchy of MailgunQueueMail
File
- src/
Plugin/ Mail/ MailgunQueueMail.php, line 14
Namespace
Drupal\mailgun\Plugin\MailView source
class MailgunQueueMail extends MailgunMail {
/**
* {@inheritdoc}
*/
public function mail(array $message) {
// Build and queue the message.
$mailgun_message = $this
->buildMessage($message);
return $this
->queueMessage($mailgun_message);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MailgunMail:: |
protected | property | Logger. | |
MailgunMail:: |
protected | property | Configuration object. | |
MailgunMail:: |
protected | property | Mailgun handler. | |
MailgunMail:: |
protected | property | Queue factory. | |
MailgunMail:: |
protected | property | Renderer service. | |
MailgunMail:: |
protected | function | Builds the e-mail message in preparation to be sent to Mailgun. | |
MailgunMail:: |
protected | function | Checks, if the mail key is excempted from tracking. | |
MailgunMail:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
MailgunMail:: |
public | function |
Formats a message prior to sending. Overrides MailInterface:: |
|
MailgunMail:: |
public | function | Queue a message for sending. | |
MailgunMail:: |
public | function | MailgunMail constructor. | |
MailgunQueueMail:: |
public | function |
Sends a message composed by \Drupal\Core\Mail\MailManagerInterface->mail(). Overrides MailgunMail:: |