ActiveCollab Modules/Customization
View Cart
Close slide

Include user as sender name in email notifications

By default, email notifications coming from activeCollab contains owner company name as the sender. Such as this:

Title: [Project A] New task has been posted
From: Example Company
To: You

You have no idea who created this task unless you look into the email body, right? That's quite inconvenient. Let's hack it!

Modify /activecollab/application/modules/system/models/ApplicationMailer.class.php, go to about line 130 (varies by version) and add the following code:

if(get_logged_user()){
$from_name .= '-'.get_logged_user()->getDisplayName();
} elseif($replacements['created_by_name']) {
$from_name .= '-'.$replacements['created_by_name'];
}

So it will look like this:

Result?

Title: [Project A] New task has been posted
From: Example Company-John Doe
To: You

Am I missing something...

I copied the code into the file, saved it, but it is not working...am I missing something?

Do I need to clear cache and compile directories?

-Keith

This is due to you using

This is due to you using auto_login module which overrides the default ApplicationMailer.

This is an awesome fix!

Thank you, this helped us big time!!!