1 | <?php |
||
5 | class MessageHelper |
||
6 | { |
||
7 | /** |
||
8 | * Get all recipients for the given message, including To, Reply-To, |
||
9 | * Cc and Bcc addresses. |
||
10 | * |
||
11 | * When the `$associated` is true, this method will return an associative |
||
12 | * array, whereby the keys provide the actual email addresses and the values |
||
13 | * provide the display names. |
||
14 | * |
||
15 | * @param \Swift_Mime_Message|\Illuminate\Mail\Message $message |
||
16 | * @param bool $associated |
||
17 | * @return string[] |
||
18 | */ |
||
19 | 2 | public static function getRecipients($message, $associated = false) |
|
34 | |||
35 | /** |
||
36 | * Get domains of the email addresses for the message recipients. |
||
37 | * |
||
38 | * @param \Swift_Mime_Message|\Illuminate\Mail\Message $message |
||
39 | * @return string[] |
||
40 | */ |
||
41 | 1 | public static function getRecipientsDomains($message) |
|
50 | } |
||
51 |