Skip to content

Commit

Permalink
develop send email function, send email for one time two email address
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilan032 committed Aug 25, 2024
1 parent 0b27d51 commit 05e7301
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/Http/Controllers/AdministratorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ public function ConformMessage(Request $request, $mid){
//get Super Admin Email Adress
$superAdminEmail=DB::table('users')
->where('user_type', 'super admin')
->value('email');
->pluck('email')
->toArray();

Mail::to($superAdminEmail)->send(new mail_for_problem($subject, $messageDetails, $administratorName, $administratorEmail, $administratorContactNumber, $bankName, $bankAddress, $bankContactNumber));

Expand Down Expand Up @@ -248,11 +249,12 @@ public function SaveMessageAdminisrator(Request $request){
//get Super Admin Email Adress
$superAdminEmail=DB::table('users')
->where('user_type', 'super admin')
->value('email');
->pluck('email')
->toArray();

//get email data for send email
$subject = $NewMessage->subject;
$messageDetails = $NewMessage->subject;
$messageDetails = $NewMessage->message;

Mail::to($superAdminEmail)->send(new mail_for_problem($subject, $messageDetails, $administratorName, $administratorEmail, $administratorContactNumber, $bankName, $bankAddress, $bankContactNumber));

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 05e7301

Please sign in to comment.