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