Results 1 to 6 of 6

Thread: email variables not being inserted

  1. #1
    labanjohnson is offline Sugar Community Member
    Join Date
    Jul 2007
    Location
    Houston, TX
    Posts
    139

    Default email variables not being inserted

    What are some possible reasons for this problem?

    The e-mail variables are not being translated into the value, in sending a test e-mail to another of my addresses it shows the variable named such as $user_first_name instead of "Laban". What could be causing this? Thanks, LJ

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: email variables not being inserted

    It doesn't look like User is supported for this. Only Accounts, Contacts, Leads, and Prospects. If you want to add Users you should be able to in modules\EmailTemplates\EmailTemplate.php in function parse_template_bean.

  3. #3
    labanjohnson is offline Sugar Community Member
    Join Date
    Jul 2007
    Location
    Houston, TX
    Posts
    139

    Default Re: email variables not being inserted

    $user_ is in the drop downs, however.. strange.

    But that doesn't answer why the other fields don't work either.

  4. #4
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: email variables not being inserted

    I'm probably wrong then. Not the first time . The issue must be something else then...

  5. #5
    labanjohnson is offline Sugar Community Member
    Join Date
    Jul 2007
    Location
    Houston, TX
    Posts
    139

    Default Re: email variables not being inserted

    Anyone else had this problem?

    Anyone know the solution?

    Probable causes?

  6. #6
    youssefaoun is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    55

    Default Re: email variables not being inserted

    Hello,

    I did and here is a link to my post

    http://www.sugarcrm.com/forums/showthread.php?t=24969

    I have even patched patched EditView in Emails:

    PHP Code:
    if($focus->parent_type == 'Cases'){
            
    $all_contacts $myCase->get_contacts();

            
    $to_addrs_ids '';
            
    $to_addrs_emails '';
            
    $to_addrs_names '';
            
    $to_addrs ''
            
    $tmp_scr '';

            foreach(
    $all_contacts as $aContact){
                    
    $to_addrs_emails .= $aContact->email1.'; ';
                    
    $to_addrs_ids .= $aContact->id.'; ';
                    
    $to_addrs_names .= $aContact->salutation.' '.$aContact->first_name.' '.$aContact->last_name.'; ';
                    
    $to_addrs .= $aContact->first_name.' '.$aContact->last_name.' <'.$aContact->email1.'>; ';
                    
    $tmp_scr .= 'set_current_parent("'.$aContact->id.'","'.$aContact->email1.'" ,"'.$aContact->first_name.' '.$aContact->last_name.'","");';
            }

            
    $focus->to_addrs $to_addrs;
            
    $focus->to_addrs_ids $to_addrs_ids;
            
    $focus->to_addrs_names $to_addrs_names;
            
    $focus->to_addrs_emails $to_addrs_emails;

            
    $xtpl->assign('TO_ADDRS'$focus->to_addrs);
            
    $xtpl->assign('TO_ADDRS_IDS'$focus->to_addrs_ids);
            
    $xtpl->assign('TO_ADDRS_NAMES'$focus->to_addrs_names);
            
    $xtpl->assign('TO_ADDRS_EMAILS'$focus->to_addrs_emails);

    These are exactly the variables that will change when you SELECT EXPLICITLY your contact.

    After all these things, I AM STILL UNABLE TO MAKE IT RUN

    Regards,
    Youssef AOUN
    Youssef AOUN
    Software Eng.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HOW-TO guide for Email Campaigns.
    By agupta in forum Marketing/Campaign Management
    Replies: 146
    Last Post: 2012-01-31, 03:08 PM
  2. Poll: Dump Sugar Mail and integrate something better?
    By bjs3 in forum General Discussion
    Replies: 246
    Last Post: 2011-11-23, 04:05 PM
  3. email marketing feature requests
    By maxsutter in forum Feature Requests
    Replies: 1
    Last Post: 2008-10-11, 10:19 AM
  4. Replies: 1
    Last Post: 2007-02-21, 11:42 AM
  5. Custom Prospect field variables on Email templates
    By kalash in forum Feature Requests
    Replies: 1
    Last Post: 2005-11-15, 10:48 AM

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
  •