Showing posts with label mailer. Show all posts
Showing posts with label mailer. Show all posts

2013-12-19

[OrangeHRM v3.0.1] How to change email notification sender name

This mod will enable you to change the email sender name from OrangeHRM to whatever you like.

It is already possible to change the email address by logging in as an Admin then:
  • Go to: Admin > Configuration > Email Configuration (/symfony/web/index.php/admin/listMailConfiguration)
  • Click on Edit, now enter any email address in the Mail Sent As field
  • Now notifications sent by the system appear as OrangeHRM [your_email@address.com]
To change the OrangeHRM sender name, edit the EmailService.php file, path:
 \symfony\apps\orangehrm\lib\model\core\Service\EmailService.php
Line no.
195     $this->messageFrom = array($this->emailConfig->getSentAs() => 'OrangeHRM');
466     $message->setFrom(array($this->emailConfig->getSentAs() => 'OrangeHRM'));

Change OrangeHRM to whatever you want.

Save the changes, restart Apache, test an email and the new name should appear with emails.