Update emailing
This commit is contained in:
parent
e4ab93340d
commit
da483342db
|
|
@ -84,8 +84,8 @@ class PBXController extends Controller
|
|||
|
||||
$mailData = $pbx;
|
||||
|
||||
Mail::to('amirah.ali@gov.tt')->send(new NotifyUser($mailData));
|
||||
Mail::to('amirah.ali@gov.tt')->send(new NotifyAdmin($mailData));
|
||||
Mail::to($pbx->email)->send(new NotifyUser($mailData));
|
||||
// Mail::to('servicedesk.mydns@gov.tt')->send(new NotifyAdmin($mailData));
|
||||
|
||||
return redirect()->route('pbx');
|
||||
}
|
||||
|
|
@ -134,7 +134,7 @@ class PBXController extends Controller
|
|||
|
||||
$old_pin->save();
|
||||
$pin = DB::table('pbx_pin')->where('id', $id)->delete();
|
||||
|
||||
|
||||
$mailData = $old_pin;
|
||||
Mail::to('amirah.ali@gov.tt')->send(new PinDisabled($mailData));
|
||||
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
<body>
|
||||
<p> Good day Admin,</p><br>
|
||||
<p>This email serves to notify you that a PBX pin has been disabled. Please see below for the necessary details to be removed into the PBX system:</p><br>
|
||||
<p>This email serves to notify you that a PBX pin has been assigned. Please see below for the necessary details to be added into the PBX system:</p><br>
|
||||
|
||||
<i><b><p>Owner: {{ $mailData['pin']->owner }}</p></b></i>
|
||||
<i><b><p >Email: {{ $mailData['email']}}</p></b></i>
|
||||
<i><b><p >PBX Pin: {{ $mailData['pin']->pin}}</p></b></i><br>
|
||||
<i><b><p>Owner: {{ $mailData->owner }}</p></b></i>
|
||||
<i><b><p >Email: {{ $mailData->email}}</p></b></i>
|
||||
<i><b><p >PBX Pin: {{ $mailData->pin}}</p></b></i><br>
|
||||
<p>Best Wishes,</p>
|
||||
<p>MYDNS Teams Directory Services</p>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Reference in a new issue