contact_* variables in email templates not populated #4740

Open
opened 2026-02-20 16:23:05 -05:00 by deekerman · 0 comments
Owner

Originally created by @marcoblancas on GitHub (Feb 25, 2022).

Issue

When editing email templates, users can use Contact / Lead / Target variables (which generates variables like $contact_*).

These variables aren't been populated when users send mails from a Lead (mails related to leads). $contact_first_name is NOT populated.

imagen

Expected Behavior

These variables should be populated as they where in previous versions (at less in 7.6.7 works like that).

Steps to Reproduce

  1. Create an email template with $contact_first_name
  2. Compose an email selecting the "Email Template" created above and relate to a Lead an email you can access.
  3. Send the email.
  4. Verify the email is not populated with the related lead first_name

Your Environment

  • SuiteCRM Version used: 7.12.4 and 8.0.3
Originally created by @marcoblancas on GitHub (Feb 25, 2022). #### Issue When editing email templates, users can use **Contact / Lead / Target** variables (which generates variables like $contact_*). These variables aren't been populated when users send mails from a Lead (mails related to leads). $contact_first_name is NOT populated. ![imagen](https://user-images.githubusercontent.com/5545390/155696100-fc890bae-b133-4800-b5c2-13c33e0051d3.png) #### Expected Behavior These variables should be populated as they where in previous versions (at less in 7.6.7 works like that). #### Steps to Reproduce 1. Create an email template with $contact_first_name 2. Compose an email selecting the "Email Template" created above and relate to a Lead an email you can access. 3. Send the email. 4. Verify the email is not populated with the related lead first_name #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: 7.12.4 and 8.0.3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4740
No description provided.