CHANGE_EMPLOYEE_REST_CONTROLLER_FILE_UPLOAD_LOG : AADHAVAN

This commit is contained in:
aadhavan valli 2024-03-19 11:39:18 +05:30
parent b7dc303d61
commit 5dfaba9c28
3 changed files with 14 additions and 7 deletions

View File

@ -48,7 +48,7 @@ class Email extends BaseConfig
/**
* SMTP Timeout (in seconds)
*/
public int $SMTPTimeout = 5;
public int $SMTPTimeout = 1000;
/**
* Enable persistent SMTP connections
@ -118,4 +118,14 @@ class Email extends BaseConfig
* Enable notify message from server
*/
public bool $DSN = false;
/**
* SMTP Debugging level. Set to 0 to disable debugging.
* Set to 1 to output server connection status only.
* Set to 2 for more detailed debugging output.
* Set to 3 for maximum debugging output.
*/
public int $SMTPDebug = 2;
}

View File

@ -512,12 +512,9 @@ class EmployeeRestController extends AdminController
$subject = 'Welcome, Employee Benefit Program Enrolment';
$message = 'Dear ' . $dataToInsert[$a]['name'] . ",<br> We are glad to welcome you to the employee benefit program ," .$policy_name['name'] ."offered by your employer, <br><br><br> Click on the link below to review your personal and family details:<br><a href='https://venbait.in/nhance/app/dev'>Review Details</a>" ;
$return_log = MailHelper::send_email($mail,$subject, $message);
// $a = json_decode( $return_log);
// print_r($a);die;
// $this->myLogger->logme($return_log,'');
$return_log = json_decode($return_log);
$this->myLogger->logme('info', "Email Status : {mail_status}, Sender Email:{email}", ['mail_status' => $return_log->status, 'email'=> $return_log->data]);
}
}

View File

@ -30,7 +30,7 @@ class MailHelper
}
} catch (Exception $e) {
return json_encode(['status' => 'failed','code' => 500,'data' => $e],500);
return json_encode(['status' => 'failed','code' => 500,'data' => $emaill],500);
}
}