Mailer.php 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace Illuminate\Contracts\Mail;
  3. use Illuminate\Contracts\Mail\Mailable as MailableContract;
  4. interface Mailer
  5. {
  6. /**
  7. * Begin the process of mailing a mailable class instance.
  8. *
  9. * @param mixed $users
  10. * @return \Illuminate\Mail\PendingMail
  11. */
  12. public function to($users);
  13. /**
  14. * Begin the process of mailing a mailable class instance.
  15. *
  16. * @param mixed $users
  17. * @return \Illuminate\Mail\PendingMail
  18. */
  19. public function bcc($users);
  20. /**
  21. * Send a new message when only a raw text part.
  22. *
  23. * @param string $text
  24. * @param mixed $callback
  25. * @return void
  26. */
  27. public function raw($text, $callback);
  28. /**
  29. * Send a new message using a view.
  30. *
  31. * @param string|array|MailableContract $view
  32. * @param array $data
  33. * @param \Closure|string $callback
  34. * @return void
  35. */
  36. public function send($view, array $data = [], $callback = null);
  37. /**
  38. * Get the array of failed recipients.
  39. *
  40. * @return array
  41. */
  42. public function failures();
  43. }