Email templates - "From" field format with name

Dmitry Bastron asked on September 1, 2017 12:11

Hi all!

I'm trying to create an email template with "From" field filled with name + email. The standard is:

"Test" <test@test.com>

But Kentico doesn't allow me to set this value and accepts only email. Is there any other solution?

Recent Answers


Joe Souch answered on September 5, 2017 12:00

I don't recommend this as it's against Kentico's advice but you could:

  1. Create a FormControl which validates for your example.
  2. Go to the database, find CMS.Class Where ClassName = 'cms.emailtemplate' and up change ClassShowAsSystemTable to false
  3. Go to the CMS.Email Module and update the Email Template class to use the new form control for the from address.

Ofc fully test after!

Joe

2 votesVote for this answer Mark as a Correct answer

Cody Ferguson answered on December 12, 2017 16:17 (last edited on December 10, 2019 02:31)

Hi Dmitry,

You can simply add the macro {%"Your name <your@email.com>"|(identity)GlobalAdministrator%} in the "from email" field in the configuration step and this should do it.

Cheers,

Cody

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.