avatar Bryce Pro Dec 28. 2009. 11:25 pm
I am using this PM with small group of guys and we really don't need this feature until later on but I need someone to tell me how I can do this. Many thanks
avatar Ilija Studen Staff Dec 29. 2009. 12:16 am
You can check ApplicationMailer class in /activecollab/application/modules/system/models and comment the lines that send out messages. Please note that entire system uses this class so you'll completely turn off mailing...
avatar Bryce Pro Dec 29. 2009. 12:26 am
Much appreciated on this information.

I just tried to comment some of lines and I got error every time I add new task / project / etc. I have been trying for last few minutes here and it's clear I may have commented in wrong areas. I was wondering if it would be possible for you to post the codes or email me directly?
avatar Ilija Studen Staff Dec 29. 2009. 12:45 am
I'm away from my office computer (writing this from one of the beach cafes in Hikkaduwa, Sri Lanka :)) ) so I can't post the exact code.

Basically, what you need to do is to comment content of send() method and make sure that it just returns TRUE without sending any emails. You should not comment the entire class or method definitions (function NAME(PARAMS) { }) because that will result in an error.

If you still need assistance with this, please email support@a51dev.com.
avatar Nirav M. Dev Dec 29. 2009. 2:42 am
If you wanted the fastest way to disable all emails going out:

Open ApplicationMailer.class.php from "activecollab/application/modules/system/models" folder.

Go to line 217. It should look like this:
$this->swift->batchSend($message_data['message'], $message_data['recipients'], new Swift_Address($from_email, $from_name));


Add two backslashes to the start of the line.

//$this->swift->batchSend($message_data['message'], $message_data['recipients'], new Swift_Address($from_email, $from_name));


Save the file. Upload to your server.

That should stop all mails.

Hope that helps!
Discover a new high in team productivity with our Best Selling & Most Loved activeCollab Extensions
avatar Ilija Studen Staff Dec 29. 2009. 5:59 am
Thanks Nirav :)
avatar Bryce Pro Jan 5. 2010. 12:40 am
Nirav- that worked. Many thanks- we need more people like you!
avatar michielvoo Mar 8. 2010. 11:02 am
Here's a hack that we use so that assignees of milestones and tickets don't get subscribes as well. You can still subscribe users if you want, but with this diff applied it's opt-in, instead of opt-out. Comment out the following lines:

In /activecollab/application/modules/milestones/controllers/MilestonesController.class.php:

// $subscribers = array_merge($subscribers, array_var($milestone_data['assignees'], 0));

and

// $subscribers = array_merge($subscribers, array_var($milestone_data['assignees'], 0));

In /activecollab/application/modules/tickets/controllers/TicketsController.class.php:

// $subscribers = array_merge($subscribers, array_var($ticket_data['assignees'], 0));

and

// $subscribers = array_merge($subscribers, array_var($ticket_data['assignees'], 0));

Use at your own risk!
avatar tmaactivecollab Pro Aug 12. 2010. 11:26 am
I tried commenting out the lines above but users are still subscribed to the milestones and tickets. Any thoughts
avatar fjohnson Pro Aug 17. 2010. 10:34 am
We're looking for a way to turn off email notifications for the authors of a post. This has been annoyance to most. We would still like all of the other subscribers to receive an email notification, however. Any suggestions?
or Go To Next Page