You are here

public function Submission::sendEmails in Little helpers 7.2

Send emails related to this submission.

This function is usually invoked when a submission is completed, but may be called any time e-mails should be redelivered.

Parameters

array $emails: (optional) An array of specific e-mail settings to be used. If omitted, all emails in $node->webform['emails'] will be sent.

Return value

int Number of emails sent.

File

src/Webform/Submission.php, line 250

Class

Submission
A useful wrapper for webform submission objects.

Namespace

Drupal\little_helpers\Webform

Code

public function sendEmails(array $emails = NULL) {
  return webform_submission_send_mail($this->node, $this, $emails);
}