| 1 | <?php |
||
| 5 | class MailMessage extends SimpleMessage |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The view for the message. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $view = 'notifications::email'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The view data for the message. |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | public $viewData = []; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The attachments for the message. |
||
| 23 | * |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | public $attachments = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * The raw attachments for the message. |
||
| 30 | * |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | public $rawAttachments = []; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Set the view for the mail message. |
||
| 37 | * |
||
| 38 | * @param string $view |
||
| 39 | * @param array $data |
||
| 40 | * @return $this |
||
| 41 | */ |
||
| 42 | public function view($view, array $data = []) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Attach a file to the message. |
||
| 52 | * |
||
| 53 | * @param string $file |
||
| 54 | * @param array $options |
||
| 55 | * @return $this |
||
| 56 | */ |
||
| 57 | public function attach($file, array $options = []) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Attach in-memory data as an attachment. |
||
| 66 | * |
||
| 67 | * @param string $data |
||
| 68 | * @param string $name |
||
| 69 | * @param array $options |
||
| 70 | * @return $this |
||
| 71 | */ |
||
| 72 | public function attachData($data, $name, array $options = []) |
||
| 78 | |||
| 79 | /** |
||
| 80 | * Get the data array for the mail message. |
||
| 81 | * |
||
| 82 | * @return array |
||
| 83 | */ |
||
| 84 | 1 | public function data() |
|
| 88 | } |
||
| 89 |