Browse Source

Email subject

Mostafijur Rahman 1 year ago
parent
commit
b7ab752642

+ 13 - 1
app/Http/Controllers/AjaxController.php

@@ -88,7 +88,7 @@ class AjaxController extends Controller
             if($teacher->status==1){
                 Mail::send('email.approve_teacher_email',$data, function ($message) use ($user_mail,$from) {
                     $message->from($from);
-                    $message->to($user_mail)->subject('New Email Send to you');
+                    $message->to($user_mail)->subject('Account Activation Confirmation');
                 });
             }
             return response(
@@ -460,6 +460,18 @@ class AjaxController extends Controller
                 $user_data->status =1;
                 $user_data->update();
 
+
+                if($user_data->update()){
+                    $data['name'] = $user_data->first_name .''.$user_data->last_name;  
+                    $user_mail = $user_data->email;
+                    $from = 'test@mail.com';
+
+                    Mail::send('email.student_signup_email',$data, function ($message) use ($user_mail,$from) {
+                        $message->from($from);
+                        $message->to($user_mail)->subject('New Email Send to you');
+                    });
+                }
+
                 return response(
                     ['msg'=>'Registration successfully saved.You can login now']
                 );

+ 3 - 3
app/Http/Controllers/ModalController.php

@@ -106,7 +106,7 @@ class ModalController extends Controller{
 				$from = 'test@mail.com';
 				Mail::send('email.student_proposal_email',$data, function ($message) use ($user_mail,$from) {
 					$message->from($from);
-					$message->to($user_mail)->subject('New Email Send to you');
+					$message->to($user_mail)->subject('Apply Ref:' .$student_proposal->student_apply_ref. '- Proposal has been submitted successfully ');
 				});
 			 }
 
@@ -175,7 +175,7 @@ class ModalController extends Controller{
 
                 Mail::send('email.wishlist_email',$data, function ($message) use ($user_mail,$from) {
                     $message->from($from);
-                    $message->to($user_mail)->subject('Wishlist Email Send to you');
+                    $message->to($user_mail)->subject('Research Admission Platform Sign-Up');
                 });
             }
 
@@ -225,7 +225,7 @@ class ModalController extends Controller{
 
                 Mail::send('email.teacher_invited_email',$data, function ($message) use ($user_mail,$from) {
                     $message->from($from);
-                    $message->to($user_mail)->subject('Wishlist Email Send to you');
+                    $message->to($user_mail)->subject('Manage Doctoral Applicants with Ease - You’re invited!');
                 });
             }
 

+ 1 - 1
resources/views/auth/invited_register_form.blade.php

@@ -151,7 +151,7 @@
 
                                                 <div class="row mb-4">
                                                     <div class="col-md-12">
-                                                        <input type="email" class="form-control " name="email" value="{{ $user->email}}" id="email" required placeholder="Email">
+                                                        <input type="email" class="form-control disabled" name="email" value="{{ $user->email}}" id="email" required placeholder="Email">
 
                                                     </div>
                                                 </div>

+ 2 - 2
resources/views/auth/wishlist_register_form.blade.php

@@ -153,7 +153,7 @@
 
                                                 <div class="row mb-4">
                                                     <div class="col-md-12">
-                                                        <input type="email" class="form-control " name="email" value="{{ $user->email}}" id="email" required placeholder="Email">
+                                                        <input type="email" class="form-control disabled" name="email" value="{{ $user->email}}" id="email" required placeholder="Email">
 
                                                     </div>
                                                 </div>
@@ -296,7 +296,7 @@
 
                   $.post("{{ route('ajax-post', ['name'=>'add_wishlist_registration']) }}", form_data, function(res){
                       pop_up_msg(res.msg);
-                      window.location.href = "{{ url('/login') }}";
+                      //window.location.href = "{{ url('/login') }}";
 
                   }).fail(function(err){
 

+ 2 - 2
resources/views/email/student_signup_email.blade.php

@@ -80,10 +80,10 @@
                         <div class="col-md-9">
                             <div class="card rounded border-0 shadow p-5" style="background-color:white;">
                                 <h3 style="text-align: center; font-family:Ubuntu !important; color: #3c4858 !important; font-size: 30px !important;">Research Admission</h3>
-                                <p class="mt-5">Dear [student Name],</p>
+                                <p class="mt-5">Dear {{$name}},</p>
                                 <p class="mt-3">Thank you for registering with our platform. You need to verify your email address in order to continue with your application.</p>
                                 <p class="mt-2"> To complete the verification process, please click on the following link or copy it into your web browser: </p>
-                                <a href="" style="color: black">click here</a>
+                                <a href="{{url('/login')}}" style="color: black">click here</a>
                                 <p class="mt-2"> If you did not register with our platform, please ignore this message.</p>
                                 <p class="mt-2" style="margin: 0px;">Best regards,</p>
                                 <p>Research Admission</p>