public function MailHandlerInterface::sendMailMessages in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/contact/src/MailHandlerInterface.php \Drupal\contact\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.
1 method overrides MailHandlerInterface::sendMailMessages()
- MailHandler::sendMailMessages in core/
modules/ contact/ src/ MailHandler.php - Sends mail messages as appropriate for a given Message form submission.
File
- core/
modules/ contact/ src/ MailHandlerInterface.php, line 33 - Contains \Drupal\contact\MailHandlerInterface.
Class
- MailHandlerInterface
- Provides an interface for assembly and dispatch of contact mail messages.
Namespace
Drupal\contactCode
public function sendMailMessages(MessageInterface $message, AccountInterface $sender);