Server IP : 173.249.157.85 / Your IP : 18.188.216.102 Web Server : Apache System : Linux server.frogzhost.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : econtech ( 1005) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/econtech/public_html/vendor/laravel/framework/src/Illuminate/Mail/ |
Upload File : |
<?php namespace Illuminate\Mail; use Illuminate\Contracts\Queue\ShouldQueue; class PendingMail { /** * The mailer instance. * * @var \Illuminate\Mail\Mailer */ protected $mailer; /** * The "to" recipients of the message. * * @var array */ protected $to = []; /** * The "cc" recipients of the message. * * @var array */ protected $cc = []; /** * The "bcc" recipients of the message. * * @var array */ protected $bcc = []; /** * Create a new mailable mailer instance. * * @param \Illuminate\Mail\Mailer $mailer * @return void */ public function __construct(Mailer $mailer) { $this->mailer = $mailer; } /** * Set the recipients of the message. * * @param mixed $users * @return $this */ public function to($users) { $this->to = $users; return $this; } /** * Set the recipients of the message. * * @param mixed $users * @return $this */ public function cc($users) { $this->cc = $users; return $this; } /** * Set the recipients of the message. * * @param mixed $users * @return $this */ public function bcc($users) { $this->bcc = $users; return $this; } /** * Send a new mailable message instance. * * @param \Illuminate\Mail\Mailable $mailable * @return mixed */ public function send(Mailable $mailable) { if ($mailable instanceof ShouldQueue) { return $this->queue($mailable); } return $this->mailer->send($this->fill($mailable)); } /** * Send a mailable message immediately. * * @param \Illuminate\Mail\Mailable $mailable * @return mixed */ public function sendNow(Mailable $mailable) { return $this->mailer->send($this->fill($mailable)); } /** * Push the given mailable onto the queue. * * @param \Illuminate\Mail\Mailable $mailable * @return mixed */ public function queue(Mailable $mailable) { $mailable = $this->fill($mailable); if (isset($mailable->delay)) { return $this->mailer->later($mailable->delay, $mailable); } return $this->mailer->queue($mailable); } /** * Deliver the queued message after the given delay. * * @param \DateTimeInterface|\DateInterval|int $delay * @param \Illuminate\Mail\Mailable $mailable * @return mixed */ public function later($delay, Mailable $mailable) { return $this->mailer->later($delay, $this->fill($mailable)); } /** * Populate the mailable with the addresses. * * @param \Illuminate\Mail\Mailable $mailable * @return \Illuminate\Mail\Mailable */ protected function fill(Mailable $mailable) { return $mailable->to($this->to) ->cc($this->cc) ->bcc($this->bcc); } }