Email Notification

Discuss Technical Queries about OrangeHRM
Post Reply
adrialiff
Posts: 2
Joined: Mon Feb 10, 2020 4:11 am

Email Notification

Post by adrialiff » Tue Feb 11, 2020 2:35 am

Hi,

We had an issue when normal user want to apply thier leave. The email notification was not receive to supervisor and approval. The configuration email and test email was succeed. Please advise us master

kavitha
Posts: 20
Joined: Thu Mar 15, 2018 8:24 am

Re: Email Notification

Post by kavitha » Tue Feb 11, 2020 4:55 am

Hi

Is the work email address of the employee and supervisor added? Which version of OrangeHRM are you using it? Are you using the exe version or zip version?

Can you please share the log file which is located in orangehrm/symfony/log/orangehrm.log


Regards
Kavitha

doing007
Posts: 2
Joined: Thu Feb 13, 2020 7:46 am

Re: Email Notification

Post by doing007 » Thu Feb 13, 2020 7:49 am

Hi Kavitha,

I am also facing the same issue and I have raised an issue in github, please find below thread from github with an error.

https://github.com/orangehrm/orangehrm/issues/604

Thanks,
Mo
Last edited by doing007 on Thu Feb 13, 2020 10:41 am, edited 2 times in total.

doing007
Posts: 2
Joined: Thu Feb 13, 2020 7:46 am

Re: Email Notification

Post by doing007 » Thu Feb 13, 2020 7:52 am

Hi Kavitha,

I am also facing the same issue and I have raised an issue in github, please find below thread from github with an error.


Hi,

I am using opensource of OrangeHRM 4.3.4, I am still not getting any emails after configuration.

Configured Email Configuration and able to send Test mail using */sendmail option
Under Email Subscription I have selected all options to trigger the when anything happens with Leave Module
Created 2 users x and y and configured x reports to y in Direct method
Configured Work email address as well
after all this configuration, Leave notification emails are not being sent.

Please find the below error log for more information.

Mon 10 Feb 2020 03:53:16 PM IST,681 [24654] ERROR leave.LeaveApplicationService - Exception while saving leave:Doctrine_Record_UnknownPropertyException: Unknown record property / related component "sendmail_path" on "EmailConfiguration" in /var/www/html/orange/symfony/lib/vendor/lexpress/doctrine1/lib/Doctrine/Record/Filter/Standard.php:55 Stack trace: #0 /var/www/html/orange/symfony/lib/vendor/lexpress/doctrine1/lib/Doctrine/Record.php(1394): Doctrine_Record_Filter_Standard->filterGet(Object(EmailConfiguration), 'sendmail_path') #1 /var/www/html/orange/symfony/lib/vendor/lexpress/doctrine1/lib/Doctrine/Record.php(1349): Doctrine_Record->_get('sendmail_path', true) #2 /var/www/html/orange/symfony/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/record/sfDoctrineRecord.class.php(185): Doctrine_Record->get('sendmail_path') #3 /var/www/html/orange/symfony/plugins/orangehrmCorePlugin/lib/mail/orangehrmMailTransport.php(76): sfDoctrineRecord->__call('getSendmailPath', Array) #4 /var/www/html/orange/symfony/apps/orangehrm/lib/model/core/Service/EmailService.php(135): orangehrmMailTransport->getTransport() #5 /var/www/html/orange/symfony/apps/orangehrm/lib/model/core/Service/EmailService.php(497): EmailService->getMailer() #6 /var/www/html/orange/symfony/plugins/orangehrmLeavePlugin/lib/mail/LeaveMailer.php(90): EmailService->sendEmailNotifications('leave.apply', Array, Array, 'ess') #7 /var/www/html/orange/symfony/lib/vendor/symfony/lib/event/sfEventDispatcher.class.php(77): LeaveMailer->listen(Object(sfEvent)) #8 /var/www/html/orange/symfony/plugins/orangehrmLeavePlugin/lib/service/LeaveApplicationService.php(158): sfEventDispatcher->notify(Object(sfEvent)) #9 /var/www/html/orange/symfony/plugins/orangehrmLeavePlugin/lib/service/LeaveApplicationService.php(74): LeaveApplicationService->saveLeaveRequest(Object(LeaveParameterObject)) #10 /var/www/html/orange/symfony/plugins/orangehrmLeavePlugin/modules/leave/actions/applyLeaveAction.class.php(110): LeaveApplicationService->applyLeave(Object(LeaveParameterObject)) #11 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(967): applyLeaveAction->execute(Object(sfWebRequest)) #12 /var/www/html/orange/symfony/plugins/orangehrmCorePlugin/lib/filter/orangehrmExecutionFilter.php(42): sfExecutionFilter->executeAction(Object(applyLeaveAction)) #13 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(962): orangehrmExecutionFilter->executeAction(Object(applyLeaveAction)) #14 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(948): sfExecutionFilter->handleAction(Object(sfFilterChain), Object(applyLeaveAction)) #15 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1044): sfExecutionFilter->execute(Object(sfFilterChain)) #16 /var/www/html/orange/symfony/lib/vendor/symfony/lib/filter/sfCommonFilter.class.php(29): sfFilterChain->execute() #17 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1044): sfCommonFilter->execute(Object(sfFilterChain)) #18 /var/www/html/orange/symfony/plugins/orangehrmCorePlugin/lib/filter/orangehrmPostExecutionFilter.php(22): sfFilterChain->execute() #19 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1044): orangehrmPostExecutionFilter->execute(Object(sfFilterChain)) #20 /var/www/html/orange/symfony/apps/orangehrm/lib/filter/ModuleFilter.php(56): sfFilterChain->execute() #21 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1044): ModuleFilter->execute(Object(sfFilterChain)) #22 /var/www/html/orange/symfony/plugins/orangehrmCorePlugin/lib/authorization/filter/ohrmAuthorizationFilter.php(101): sfFilterChain->execute() #23 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1044): ohrmAuthorizationFilter->execute(Object(sfFilterChain)) #24 /var/www/html/orange/symfony/apps/orangehrm/lib/filter/SessionInfoFetcherFilter.php(67): sfFilterChain->execute() #25 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1044): SessionInfoFetcherFilter->execute(Object(sfFilterChain)) #26 /var/www/html/orange/symfony/apps/orangehrm/lib/filter/OrangeI18NFilter.php(58): sfFilterChain->execute() #27 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1044): OrangeI18NFilter->execute(Object(sfFilterChain)) #28 /var/www/html/orange/symfony/apps/orangehrm/lib/filter/ExceptionCatcherFilter.php(26): sfFilterChain->execute() #29 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1044): ExceptionCatcherFilter->execute(Object(sfFilterChain)) #30 /var/www/html/orange/symfony/lib/vendor/symfony/lib/filter/sfBasicSecurityFilter.class.php(72): sfFilterChain->execute() #31 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1044): sfBasicSecurityFilter->execute(Object(sfFilterChain)) #32 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1009): sfFilterChain->execute() #33 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1044): sfRenderingFilter->execute(Object(sfFilterChain)) #34 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(685): sfFilterChain->execute() #35 /var/www/html/orange/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(2773): sfController->forward('leave', 'applyLeave') #36 /var/www/html/orange/symfony/lib/vendor/symfony/lib/util/sfContext.class.php(179): sfFrontWebController->dispatch() #37 /var/www/html/orange/symfony/web/index.php(22): sfContext->dispatch() #38 {main}

kavitha
Posts: 20
Joined: Thu Mar 15, 2018 8:24 am

Re: Email Notification

Post by kavitha » Fri Feb 14, 2020 1:39 pm

Hi

Thanks for forwarding the issue. We will check the issue and get back to you.


Regards
Kavitha

rajitha
Posts: 20
Joined: Tue Feb 11, 2020 9:54 am

Re: Email Notification

Post by rajitha » Thu Feb 20, 2020 4:26 am

Please refer https://github.com/orangehrm/orangehrm/issues/604#issuecomment-587401989 to get temporary fix for OrangeHRM 4.3.4.

Post Reply