You are here

public function PostmarkMail::__construct in Postmark 8

Constructs a Postmark mailer.

Parameters

\Drupal\Core\Config\ImmutableConfig $settings: The configuration settings.

\Psr\Log\LoggerInterface $logger: The core logger service.

\Drupal\postmark\PostmarkHandler $postmark_handler: The Postmark handler.

File

src/Plugin/Mail/PostmarkMail.php, line 56

Class

PostmarkMail
Modify the Drupal mail system to use Postmark when sending emails.

Namespace

Drupal\postmark\Plugin\Mail

Code

public function __construct(ImmutableConfig $settings, LoggerInterface $logger, PostmarkHandler $postmark_handler) {
  $this->config = $settings;
  $this->logger = $logger;
  $this->postmarkHandler = $postmark_handler;
}