interface MailHandlerInterface
Same name in other branches
- 9 core/modules/contact/src/MailHandlerInterface.php \Drupal\contact\MailHandlerInterface
- 8.9.x core/modules/contact/src/MailHandlerInterface.php \Drupal\contact\MailHandlerInterface
- 10 core/modules/contact/src/MailHandlerInterface.php \Drupal\contact\MailHandlerInterface
Provides an interface for assembly and dispatch of contact mail messages.
Hierarchy
- interface \Drupal\contact\MailHandlerInterface
Expanded class hierarchy of MailHandlerInterface
All classes that implement MailHandlerInterface
File
-
core/
modules/ contact/ src/ MailHandlerInterface.php, line 10
Namespace
Drupal\contactView source
interface MailHandlerInterface {
/**
* 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.
*
* @param \Drupal\contact\MessageInterface $message
* Submitted message entity.
* @param \Drupal\Core\Session\AccountInterface $sender
* User that submitted the message entity form.
*
* @throws \Drupal\contact\MailHandlerException
* When unable to determine message recipient.
*/
public function sendMailMessages(MessageInterface $message, AccountInterface $sender);
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
MailHandlerInterface::sendMailMessages | public | function | Sends mail messages as appropriate for a given Message form submission. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.