How to display full name followed by static text instead of entire mail address as from address.

raj k asked on May 16, 2016 12:24

Dear support in my requirement I need to display full vname of user followed by static text like (full name of user)(member@abc.com). As of now I tried all the ways to do but unable to trigger out.Please help us as early as possible.

Thanks in advance.

Recent Answers


Jan Hermann answered on May 16, 2016 13:15 (last edited on May 16, 2016 13:16)

{%CurrentUser.FullName%} or {%GlobalObjects.Users["UserName"].FullName%}

0 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on May 16, 2016 13:35

You may join two macros by a hyphen or whatever text

{% CurrentUser.FullName %} (full name of user) {% CurrentUser.Email %}

Thanks, Chetan

1 votesVote for this answer Mark as a Correct answer

raj k answered on May 16, 2016 14:31

Hi, Thank you for your response :) My exact requirement is in email when ever user receives it should not display the sender's email address it should display only full name of sender.By using the macro {% CurrentUser.FullName %} (full name of user) {% CurrentUser.Email %} it will show email address.You might aware of SMTP mail sending process in that we are having Mailmessage method in which the from address property uses mail address along with displayname optional.In my scenario I need this but in kentico by default it is not using the optional parameter display name.So please help me out.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 16, 2016 14:33

This is dependent on the version of Kentico you are using. I believe it is available in v8.2 and greater out of the box.

0 votesVote for this answer Mark as a Correct answer

raj k answered on May 16, 2016 15:28

The current version of our site is v8.2.24 But we are unable to show display name

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on May 17, 2016 09:47

You can set this for sender email address when edition the email campaign (newsletter). There are fields like Sender name and Sender email address that do what you are describing.

2 votesVote for this answer Mark as a Correct answer

Ricardo Escovar answered on May 27, 2016 13:55 (last edited on May 27, 2016 13:56)

Hello! I have a similar problem... I'm on Kentico 9.0

I have tryed to set this properties by using macro but it doesn't work:

Sender name: {%CurrentUser.FullName%}

When sending mail I get this in sender name in the email sent: {%CurrentUser.FullName|(user)administrator|(hash)6544efcbe9902941beb25c7cb696eabccb6a7b579d1c698f4392996bb2c4535b%}

Sender email address: {%CurrentUser.Email%}

Can't even save, I get "Please enter sender email in correct format." error

I have the same error trying to set them up on Email marketing - Configuration and in Email marketing - Emails - Content - Show advanced options and UTM tracking settings

Thanks,

Ricardo

0 votesVote for this answer Mark as a Correct answer

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