composer package updates
[openemr.git] / vendor / illuminate / contracts / Mail / Mailer.php
blob559adfcf97a32a9709d9c0696613559e6128c8e6
1 <?php
3 namespace Illuminate\Contracts\Mail;
5 interface Mailer
7 /**
8 * Begin the process of mailing a mailable class instance.
10 * @param mixed $users
11 * @return \Illuminate\Mail\PendingMail
13 public function to($users);
15 /**
16 * Begin the process of mailing a mailable class instance.
18 * @param mixed $users
19 * @return \Illuminate\Mail\PendingMail
21 public function bcc($users);
23 /**
24 * Send a new message when only a raw text part.
26 * @param string $text
27 * @param mixed $callback
28 * @return void
30 public function raw($text, $callback);
32 /**
33 * Send a new message using a view.
35 * @param string|array|MailableContract $view
36 * @param array $data
37 * @param \Closure|string $callback
38 * @return void
40 public function send($view, array $data = [], $callback = null);
42 /**
43 * Get the array of failed recipients.
45 * @return array
47 public function failures();