Mailer.php 1.0 KB

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