Update emailing

This commit is contained in:
root 2023-06-02 04:25:38 -04:00
parent e4ab93340d
commit da483342db
2 changed files with 7 additions and 7 deletions

View file

@ -84,8 +84,8 @@ class PBXController extends Controller
$mailData = $pbx; $mailData = $pbx;
Mail::to('amirah.ali@gov.tt')->send(new NotifyUser($mailData)); Mail::to($pbx->email)->send(new NotifyUser($mailData));
Mail::to('amirah.ali@gov.tt')->send(new NotifyAdmin($mailData)); // Mail::to('servicedesk.mydns@gov.tt')->send(new NotifyAdmin($mailData));
return redirect()->route('pbx'); return redirect()->route('pbx');
} }

View file

@ -6,11 +6,11 @@
<body> <body>
<p> Good day Admin,</p><br> <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>Owner: {{ $mailData->owner }}</p></b></i>
<i><b><p >Email: {{ $mailData['email']}}</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 >PBX Pin: {{ $mailData->pin}}</p></b></i><br>
<p>Best Wishes,</p> <p>Best Wishes,</p>
<p>MYDNS Teams Directory Services</p> <p>MYDNS Teams Directory Services</p>
</body> </body>