Results 1 to 4 of 4

Thread: Modify outgoing email messages?

  1. #1
    D_M_S is offline Senior Member
    Join Date
    Aug 2009
    Posts
    64

    Default Modify outgoing email messages?

    How can you modify the outgoing messages in Sugar? More specifically, in the bug tracker, when the user gets the "assignment" e-mail, I want it to list the Account name - I'm surprised the default version does not do that.

    SugarCE6 on WIMP

  2. #2
    D_M_S is offline Senior Member
    Join Date
    Aug 2009
    Posts
    64

    Default Re: Modify outgoing email messages?

    Bumpy Bumpy

  3. #3
    ashu_ju is offline Member
    Join Date
    Jul 2010
    Posts
    11

    Default Re: Modify outgoing email messages?

    I have found notification emails are written in \include\en_us.notify_template.html file. I tried to override this file but not worked.

    Can we modify contents directly?
    is it Upgrade safe ?




    Thanks,
    Ashu

  4. #4
    guigui is offline Sugar Community Member
    Join Date
    Jun 2010
    Posts
    54

    Default Re: Modify outgoing email messages?

    Hi
    you can copy the file:
    en_us.notify_template.html to custom/include/language/en_us.notify_template.html
    I think there was a bug for versions <6.1 but not sure.

    you can add more variables to the message by altering the following function in modules/bugs/Bug.php
    Code:
    	function set_notification_body($xtpl, $bug)
    	{
    		global $mod_strings, $app_list_strings;
    
    		$bug->set_release();
    
    		$xtpl->assign("BUG_SUBJECT", $bug->name);
    		$xtpl->assign("BUG_TYPE", $app_list_strings['bug_type_dom'][$bug->type]);
    		$xtpl->assign("BUG_PRIORITY", $app_list_strings['bug_priority_dom'][$bug->priority]);
    		$xtpl->assign("BUG_STATUS", $app_list_strings['bug_status_dom'][$bug->status]);
    		$xtpl->assign("BUG_RESOLUTION", $app_list_strings['bug_resolution_dom'][$bug->resolution]);
    		$xtpl->assign("BUG_RELEASE", $bug->release_name);
    		$xtpl->assign("BUG_DESCRIPTION", $bug->description);
    		$xtpl->assign("BUG_WORK_LOG", $bug->work_log);
    		$xtpl->assign("BUG_BUG_NUMBER", $bug->bug_number);
    		return $xtpl;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. outgoing email error
    By neel1154 in forum Help
    Replies: 20
    Last Post: 2011-05-11, 09:13 AM
  2. Replies: 1
    Last Post: 2010-01-18, 05:19 PM
  3. Replies: 2
    Last Post: 2009-10-25, 06:29 AM
  4. Replies: 2
    Last Post: 2009-06-01, 11:30 AM
  5. Outgoing email problem
    By Matt Moreau in forum Help
    Replies: 2
    Last Post: 2007-08-30, 07:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •