Results 1 to 3 of 3

Thread: editing notification e-mail template

  1. #1
    sbantz is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    52

    Default editing notification e-mail template

    I am trying to change the notification e-mail template by editing the file \include\en_us.notify_template.html

    I want the Cases section to include the account name in the subject and body of the e-mail, but it never shows up. I copied it exactly from the section that sends a notification for an account that is assigned to you. Even though I put {ACCOUNT_NAME}, it never shows up. It does show up when sending an Account notification, just not the Case notification even though they are formatted similarly.

    Here is an example:

    <!-- BEGIN: Account_Subject -->
    SugarCRM Account - {ACCOUNT_NAME}
    <!-- END: Account_Subject -->
    <!-- BEGIN: Account -->
    {ASSIGNER} has assigned an Account to {ASSIGNED_USER}.

    Name: {ACCOUNT_NAME}
    Type: {ACCOUNT_TYPE}
    Description: {ACCOUNT_DESCRIPTION}

    You may review this Account at:
    <{URL}>
    <!-- END: Account -->


    <!-- BEGIN: Case_Subject -->
    SugarCRM Shipping Notification - {ACCOUNT_NAME}
    <!-- END: Case_Subject -->
    <!-- BEGIN: Case -->
    {ASSIGNER} has shipped an order to {ACCOUNT_NAME}, which was handled by {ASSIGNED_USER}.

    Status: {CASE_STATUS}

    You may view the complete shipment details at:
    <{URL}>
    <!-- END: Case -->

    Am I missing something or is it not possiblle to use {ACCOUNT_NAME} in Cases?
    Last edited by sbantz; 2007-10-10 at 09:48 PM.

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: editing notification e-mail template

    You would need to edit your modules/Cases/Case.php

    Around line #386 you are going to see a function called set_notification_body()

    You need to add a line like

    $xtpl->assign("ACCOUNT_NAME", $case->account_name);

    that should fill in that field for you.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    sbantz is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    52

    Default Re: editing notification e-mail template

    Brilliant.

    Thanks a ton!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 2007-12-28, 09:08 PM
  2. workflow mail template
    By wivaku in forum Feature Requests
    Replies: 0
    Last Post: 2006-12-17, 12:59 PM
  3. [4.5.0e]inbound mail notification!!!
    By piro in forum Help
    Replies: 7
    Last Post: 2006-10-30, 10:27 AM
  4. New Mail Notification & Active Sync Functions for Pocket PC
    By kickedmydog in forum Feature Requests
    Replies: 0
    Last Post: 2006-09-13, 11:41 PM
  5. Mail notification problem
    By johnny in forum Help
    Replies: 4
    Last Post: 2004-10-29, 12:21 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
  •