ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MockPlugin.php
Go to the documentation of this file.
1 <?php
2 
4 
20 
21  protected $emails = [];
22 
32  protected function mail($to, $subject, $body, array $headers) {
33 
34  $this->emails[] = [
35  'to' => $to,
36  'subject' => $subject,
37  'body' => $body,
38  'headers' => $headers,
39  ];
40 
41  }
42 
43  function getSentEmails() {
44 
45  return $this->emails;
46 
47  }
48 
49 
50 }
mail($to, $subject, $body, array $headers)
This function is responsible for sending the actual email.
Definition: MockPlugin.php:32