Rapport-Laravel/app/Mail/NeblogisticDepotTmMapping.php

48 lines
1.2 KiB
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class NeblogisticDepotTmMapping extends Mailable
{
use Queueable, SerializesModels;
public $data;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($data)
{
$this->data = $data;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$address = 'support.rapport@stratawiz.com';
$subject = 'New Request to assign depot with tm, Employee Name: '.$this->data['employee_name'].' Mobile Number: '.$this->data['employee_phone'];
$view = 'email.neblogistics_mapping';
$name = 'GNP Support Team';
return $this->view($view)
->from($address, $name)
//->cc($address, $name)
//->bcc($address, $name)
->replyTo($address, $name)
->subject($subject)
->with('data', $this->data);
}
}