diff --git a/app/Controllers/EmpDataServiceController.php b/app/Controllers/EmpDataServiceController.php
index fa3d4378..43d26b3b 100755
--- a/app/Controllers/EmpDataServiceController.php
+++ b/app/Controllers/EmpDataServiceController.php
@@ -4416,7 +4416,7 @@ class EmpDataServiceController extends BaseController
employees.email_corporate,
employees.name,
employees.mobile,
- employees.basic_cover_si,
+ employee_polices.basic_cover_si,
cp.policy_type_id,
cp.is_addon,
@@ -4438,7 +4438,7 @@ class EmpDataServiceController extends BaseController
if ($emp_details) {
$this->myLogger->logme('error', 'sendMailForDownloadingECard - Processing employee_policy_id: {id}', ['id' => $id]);
- if (!empty($emp_details['email_corporate'])) {
+ if (!empty($emp_details['email_corporate']) && $emp_details['relationship'] === 'Self') {
$params = [
'rand_string' => $emp_details['rand_string'],
diff --git a/app/Helpers/sendMailNotification.php b/app/Helpers/sendMailNotification.php
index a5af0834..3ecb7932 100755
--- a/app/Helpers/sendMailNotification.php
+++ b/app/Helpers/sendMailNotification.php
@@ -113,7 +113,7 @@ class sendMailNotification
$subject = $cleanedText;
- $link = generate_download_link($rand_string);
+ $link = generate_download_link($rand_string).'/1';
$app_link = $_ENV['App_Url'];
$name = $get_emp_email_and_other_details['name'];
diff --git a/app/Views/employee_data_list.php b/app/Views/employee_data_list.php
index d985fea1..9543fa85 100755
--- a/app/Views/employee_data_list.php
+++ b/app/Views/employee_data_list.php
@@ -160,7 +160,7 @@
View E-Card
-
+
Send E-Card Mail