Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
48 lines (42 sloc)
1.04 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Contracts\Mail; | |
interface Mailer | |
{ | |
/** | |
* Begin the process of mailing a mailable class instance. | |
* | |
* @param mixed $users | |
* @return \Illuminate\Mail\PendingMail | |
*/ | |
public function to($users); | |
/** | |
* Begin the process of mailing a mailable class instance. | |
* | |
* @param mixed $users | |
* @return \Illuminate\Mail\PendingMail | |
*/ | |
public function bcc($users); | |
/** | |
* Send a new message with only a raw text part. | |
* | |
* @param string $text | |
* @param mixed $callback | |
* @return void | |
*/ | |
public function raw($text, $callback); | |
/** | |
* Send a new message using a view. | |
* | |
* @param \Illuminate\Contracts\Mail\Mailable|string|array $view | |
* @param array $data | |
* @param \Closure|string|null $callback | |
* @return void | |
*/ | |
public function send($view, array $data = [], $callback = null); | |
/** | |
* Get the array of failed recipients. | |
* | |
* @return array | |
*/ | |
public function failures(); | |
} |