Results 1 to 5 of 5

Thread: Email Template Variable Replacement issue in Subject Line

  1. #1
    michaelpaxton is offline Junior Member
    Join Date
    Apr 2008
    Posts
    3

    Default Email Template Variable Replacement issue in Subject Line

    Hello Community,

    I am trying to send out an email to a contact that is attached to an account, using a template using variable replacement.

    I put the variables into the subject line, and when it is sent, the logged history shows that the subject line replaced the variable, when when it is received on the users end it has not replaced it. It still shows as "$contact_name" instead of "John Smith".

    This sample email was sent to my gmail and then pulled into outlook. Both in Outlook and on my gmail account the variables were not replaced. The body of the email did however have the variables correctly replaced.

    Suggestions?

    Thanks in advance.

    Mike - Nooby

  2. #2
    sgandhi is offline Sugar Team Member
    Join Date
    Aug 2007
    Posts
    217

    Default Re: Email Template Variable Replacement issue in Subject Line

    michaelpaxton, I am able to reproduce this issue. I am working on this.

    -Samir Gandhi

  3. #3
    sgandhi is offline Sugar Team Member
    Join Date
    Aug 2007
    Posts
    217

    Default Re: Email Template Variable Replacement issue in Subject Line

    michaelpaxton,
    In the Email.php, there is function email2Send($request). In that there is a line of code $
    PHP Code:
    this->description_html from_html($this->description_html); 
    . Just before that put this code

    PHP Code:
    $mail->Subject $this->name
    That should fix it.

    -Samir Gandhi

  4. #4
    michaelpaxton is offline Junior Member
    Join Date
    Apr 2008
    Posts
    3

    Default Re: Email Template Variable Replacement issue in Subject Line

    Where would I find this Email.php file you are referring to?

  5. #5
    michaelpaxton is offline Junior Member
    Join Date
    Apr 2008
    Posts
    3

    Default Re: Email Template Variable Replacement issue in Subject Line

    Thank you this worked great. I found the file in sugar/modules/email

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Module with no SubPanels
    By dop3 in forum Developer Help
    Replies: 3
    Last Post: 2008-06-29, 06:24 PM
  2. Email Template Variable Replacement Issue
    By adam2brouski in forum Developer Help
    Replies: 2
    Last Post: 2008-06-13, 03:16 PM
  3. Multiple errors
    By amoslmeditabcom693427 in forum Help
    Replies: 0
    Last Post: 2004-11-11, 05:02 PM
  4. Errors when importing
    By amoslmeditabcom693427 in forum Help
    Replies: 0
    Last Post: 2004-11-09, 05:14 PM
  5. Import Leads Bug in OS V2
    By computerchipt in forum Developer Help
    Replies: 2
    Last Post: 2004-10-29, 05:16 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
  •