Mail signature short codes not working. 🖊

So I thought I’d be smart and not having to recode each email signature to (with their name and add their email), and instead use the shortcodes:

  • $employee_email1
  • $employee_first_name $employee_last_name

But nope. Doesn’t work:

My code:
<span style="font-family: Helvetica, sans-serif; font-size: 12px; color: #666666; font-weight: bolder;">$employee_first_name $employee_last_name</span>

<a style="font-family: Helvetica, sans-serif; font-size: 12px; color: #2094d3; text-decoration: none;" href="mailto:$employee_email1">$employee_email1</a>

(After emailing the coded mail to my old Gmail account):

That’s a total failure. :cry:
It did not draw the CRM users name and email and printed it into the template when it was sent. I just sent it as is with the short codes to read openly in the received email…

Any ideas?

Thanks in advance.
Kind regards

deleted / posted in the wrong thread by mistake and moved here: Email signature 📩 not loading correctly or at all - #12 by PowerQuest

Anwways; short codes not working at all… Any ideas fellas?

Thanks a bunch in advance.
Kind regards

Just did an additional test. I made a blank email template:

and then sent that to my old junk hotmail account.

The end result is this sent test email is this:

Cleary the short codes are not being translated/printed in the email with the SuiteCRM user’s name and email. So it is not working at all.

Anyone here that could give some feedback on this please?

There’s no way that’s going to work. Where would the email get the employee_firstname from?

When you use contact_firstname the email can get it if (and only if) the email is related to a contact. So how would it get the employee first name when you are sending to another record? It can’t, unless you were sending the email to an employee and then maybe (I haven’t tested it).

Maybe you might be able to use the assigned user’s first name and it might be able to pull the assigned user of whomever you’re sending the email to. Not sure if there is anything like $current_user_firstname or something like that.

The key with using these things is they only work if the email is directly related to the record you are trying to send it from.

Variables works on only Accounts,Contacts and Leads module,So you try with these modules definetly it works.

It was the leads I tested from. Maybe I used the wrong shortcode then?

I wanted to draw user/sales reps mail and name into the email when one of our employees sent a email…

Which shortcode is the correct ones for your own employees (e.g. your own users in the system)?
I wanted to print in their name and their email into the emails they send.


I don’t think that’s possible. You may be able to get the assigned user for the lead.




You’ll have to test.

Well my point here / idea was not be able to do one generic template instead of having to do one personalized email template for each employee which is both time consuming and also will bloat the list of loadable templates in the system…

When I mean e-mail templates I mean this of course:

and of course each users own personal email.

It is / would be way easier/faster and less cumbersome to print their email addresses and their full names into the email which they are sending than having personalized templates.

I know exactly what you want, you can try the options I provided and see if they work for you. I personally wouldn’t trust it even if you got it to work because it really depends on the record you’re sending the email to and it may not work in all cases, even if it works in one case. The first example I gave you will probably only work if sent to a lead and the second one will probably only work if sent to a contact.

I think @pgr has a ready made solution for this with his add on that would solve your problem.

Right got it, thanks.

So how do you do this yourself? (I hope you do not mind).

Do yo really make a personalized templates for each of your sales reps /employees?

Thanks you very much in advance. :wink:

I just don’t include the signature in the template. It gets inserted automatically when you create an email if you have your personal signature set up.

Right ok.
I see… :+1:

Well the personal signature has been quite unreliable for me. Sometimes it doesn’t load other times it loads as pure text and you need to refresh it to load properly.

To be honest when I think about it @pstevens
I never seen the personal signature be loaded after the (custom) e-mail templates so it is the first time I ever heard about it. So I’m quite surprised to read that… :hushed:

When I pick email template from the list it is sent with only that. can confirm it of course because I seen many times when customer replies back. The email signature should then have been listed twice.

I think there was a change to make this happen recently, a few versions back I think it wiped out the email signature.

1 Like

Interesting indeed.
Thanks for sharing the screenshot. :smiley:

I wonder why yours is doing it (Adding the signature below) and mine is not adding it. :upside_down_face:
Never seen that. :joy:

But on the flipside I’m quite happy it doesn’t for now because it will require a lot of work from me with re-coding templates etc. :man_shrugging:

Shortcodes would be nice though if I could get them working for me…

I used this in the system because I thought that was the right one, (Well it made logic sense to me with “employees” in SuiteCRM).

But I will test your suggestion of short codes of course.

Thanks again!
Kind regards

In your example above, that would only work if you were sending the email to an employee.

The field must be in the record your sending the email to, otherwise it won’t work.

I have used the assigned to in the past and that is a workable solution because your sending to a contact, typically you are the sales rep assigned to that contact and “assigned to” is in the contact record.

So what is your company´s employees (E.g. registered CRM users), defined as?
Obviously what I want to accomplish is to be able to use a generic shortcode for our employee/CRM user’s @username @mail to be printed automatically when they send a email to a prospect in leads or opportunties. That way its enough with one template each each type…

The code doing the replacements is really basic, it’s generic for all modules and does not really understand anything about the context of where you’re at. All you get are the fields of the record that you are currently on.

I did a full rewrite of all that for my add-ons, not just some minor adaptations or fixes, because it just is not a good starting point. Way too basic for what people require from a CRM. That’s why there are all these threads here of people complaining that they aren’t able to reach some “obvious” piece of information required for their purposes.

So the rule here is: try it, if it works, cool, if it doesn’t, don’t waste your time wondering why.

Often, a good workaround is to have workflows “pull” related information into the record (into some unused field) with what you need; and then that information is available to the code that does the replacements.