CHANGE_EMPLOYEE_REST_CONTROLLER_FILE_UPLOAD_LOG : AADHAVAN
This commit is contained in:
parent
b7dc303d61
commit
5dfaba9c28
@ -48,7 +48,7 @@ class Email extends BaseConfig
|
|||||||
/**
|
/**
|
||||||
* SMTP Timeout (in seconds)
|
* SMTP Timeout (in seconds)
|
||||||
*/
|
*/
|
||||||
public int $SMTPTimeout = 5;
|
public int $SMTPTimeout = 1000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable persistent SMTP connections
|
* Enable persistent SMTP connections
|
||||||
@ -118,4 +118,14 @@ class Email extends BaseConfig
|
|||||||
* Enable notify message from server
|
* Enable notify message from server
|
||||||
*/
|
*/
|
||||||
public bool $DSN = false;
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -512,12 +512,9 @@ class EmployeeRestController extends AdminController
|
|||||||
$subject = 'Welcome, Employee Benefit Program Enrolment';
|
$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>" ;
|
$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);
|
$return_log = MailHelper::send_email($mail,$subject, $message);
|
||||||
|
$return_log = json_decode($return_log);
|
||||||
// $a = json_decode( $return_log);
|
|
||||||
|
|
||||||
// print_r($a);die;
|
|
||||||
// $this->myLogger->logme($return_log,'');
|
|
||||||
|
|
||||||
|
$this->myLogger->logme('info', "Email Status : {mail_status}, Sender Email:{email}", ['mail_status' => $return_log->status, 'email'=> $return_log->data]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ class MailHelper
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return json_encode(['status' => 'failed','code' => 500,'data' => $e],500);
|
return json_encode(['status' => 'failed','code' => 500,'data' => $emaill],500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user