Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/./././../../././app/Events
الملفات الموجودة في هذا الـ Path:
.
..
MailEvent.php
SendEMail.php
مشاهدة ملف: SendEMail.php
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Log;
class SendEMail
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $to;
public $subject;
public $body;
public $reply_to;
public $attachments;
public $config;
public $email_queue_id;
public $from;
public $from_email;
public $from_name;
/**
* Create a new event instance.
* @param $from
* @param $fromEmail
* @param $to
* @param $subject
* @param $body
* @param $reply_to
* @return void
*/
public function __construct($from,$fromEmail,$fromName,$to, $subject, $body, $reply_to=null, $attachments=null, $sendingServer=null, $email_queue_id=null)
{
$this->from = $from;
$this->from_email = $fromEmail;
$this->from_name = $fromName;
$this->to = $to;
$this->subject = $subject;
$this->body = $body;
$this->reply_to = $reply_to;
$this->attachments=$attachments;
$this->config=$sendingServer;
$this->email_queue_id=$email_queue_id;
}
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
*/
public function broadcastOn()
{
return new PrivateChannel('channel-name');
}
}