Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MailHandlerInterface.php

function MailHandlerInterface::sendMailMessages

Sends mail messages as appropriate for a given Message form submission.

Can potentially send up to three messages as follows:

  • To the configured recipient;
  • Auto-reply to the sender; and
  • Carbon copy to the sender.

Parameters

\Drupal\contact\MessageInterface $message: Submitted message entity.

\Drupal\Core\Session\AccountInterface $sender: User that submitted the message entity form.

Throws

\Drupal\contact\MailHandlerException When unable to determine message recipient.

File

core/modules/contact/src/MailHandlerInterface.php, line 28

Class

MailHandlerInterface
Provides an interface for assembly and dispatch of contact mail messages.

Namespace

Drupal\contact

Code

public function sendMailMessages(MessageInterface $message, AccountInterface $sender);
RSS feed
Powered by Drupal