Results 1 to 7 of 7

Thread: custom module email notification

  1. #1
    ctran-prowess is offline Member
    Join Date
    Aug 2009
    Posts
    8

    Default custom module email notification

    Hello,

    I need help on the email notification. I created a custom module using modulebuilder from SugarCRM 5.2I. Creation and deploying of the custom modules are great and works fine. I've tried to make the custom modules fields similar to Bug fields. The issue is when the email where send out to the "assigned to" user. The emails does not contain any information except the link. I would like to implement more detail on the email notification.

    I have tried editing the en_us.notify_template.html but it seems not working.

    Please provide assist.

    SugarCRM 5.2i
    PHP 5.2
    Apache, MySQL
    Window XP

    Thank you very much, Calvin

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: custom module email notification

    You need to add the email body into file include/language/en_us.notify_template.html.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    ctran-prowess is offline Member
    Join Date
    Aug 2009
    Posts
    8

    Default Re: custom module email notification

    Thank you very much for your reply, andopes.

    I added the email body to file include/language/en_us.notify_template.html but seems like its not working.

    Can you give me some example so i can compare? Very help you can provide, i'm very appreicated. Thank you.

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: custom module email notification

    Take a quick look at the file.
    You will see something like that:


    <!-- 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 -->

    So you need to add the html body for your module accordingly.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    AlexAv's Avatar
    AlexAv is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Ukraine
    Posts
    922

    Default Re: custom module email notification

    Did you 'on' the SugarCRM notification setting?
    Letrium ltd. - Only high quality service
    http://letrium.com

  6. #6
    ctran-prowess is offline Member
    Join Date
    Aug 2009
    Posts
    8

    Default Re: custom module email notification

    Thanks for reply again andopes and also AlexAv

    AlexAv - yes, if you refer to SugarCRM setting for "Notify on Assignment" it is on for all the account users.

    andopes - I have tried applying the html body to custom module as following.

    my custom module named "q108_BeamDataStatus"

    <!-- BEGIN: q108_BeamDataStatus_Subject -->
    SugarCRM Subject - {q108_BeamDataStatus_SUBJECT}
    <!-- END: q108_BeamDataStatus_Subject -->
    <!-- BEGIN: q108_BeamDataStatus -->
    {ASSIGNER} has assigned an Subject to {ASSIGNED_USER}.

    Subject: {q108_BeamDataStatus_SUBJECT}
    Type: {q108_BeamDataStatus_TYPE}
    Description: {q108_BeamDataStatus_DESCRIPTION}

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

    It's not working..... I have tried couple different naming but still dont work. I'm sorry for all the trouble. Please help.

    Thank you very much and I'm appreciated for all the help.

    Calvin

  7. #7
    ctran-prowess is offline Member
    Join Date
    Aug 2009
    Posts
    8

    Default Re: custom module email notification

    well, after spend hours of modifying and editing. I finally got it work.

    There are two files need to edit for custom modules.

    1) email body into file include/language/en_us.notify_template.html.
    add html body. like my example.

    2) edit \modules\(custom modules)\(custom_module).php file
    example.
    require_once('modules/q108_BeamDataStatus/q108_BeamDataStatus_sugar.php');
    class q108_BeamDataStatus extends q108_BeamDataStatus_sugar {

    function q108_BeamDataStatus(){
    parent::q108_BeamDataStatus_sugar();
    }

    function set_notification_body($xtpl, $q108_BeamDataStatus)
    {
    $xtpl->assign("q108_BeamDataStatus_SUBJECT","$q108_BeamD ataStatus->subject");
    $xtpl->assign("q108_BeamDataStatus_TYPE","$q108_BeamData Status->type");
    $xtpl->assign("q108_BeamDataStatus_DESCRIPTION","$q108_B eamDataStatus->description");
    return $xtpl;
    }

    Hope this information will help other ppl.

    Chear - Calvin

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sugar Appliance, Administration, Configure Notification, Email Notification Address
    By InThisWorld in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2010-01-14, 12:06 AM
  2. Lead Notification Email - Add custom field
    By sinkplaat in forum General Discussion
    Replies: 2
    Last Post: 2008-02-22, 04:14 PM
  3. Replies: 3
    Last Post: 2007-09-21, 03:55 AM
  4. module change log email notification
    By ellerjefe in forum General Discussion
    Replies: 0
    Last Post: 2006-07-10, 08:15 PM
  5. no email notification in calendar module
    By erxleben in forum Help
    Replies: 0
    Last Post: 2005-01-25, 06:23 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
  •