How to make the URL as plain text in the email template?

Hi Team,

I want a URL (which is actually displayed based on the method - $PC(VerificationLink)$ from the process step ) in the body of the email to be displayed as plain text instead of hyperlink. However the signature of the email wherein it is hyperlinked with an URL should not be impacted and it should be as it is. Please help me figure out this

Best regards,

Prakash

  • I have tried adding custom css class ( pointer-events:none ) in the existing template, however it is not saved when I select HTML in 'Target format'. 
    It would be great if anybody has solution to this

  • I do not understand the issue.

    When I am putting the URL as plain text in my mail template I am getting plain text in the mail. The URL links in the OOTB mail templates are coded as links in the mail definition, that's why you see them as links.

  • Hi Markus,

    Thank you for your response!
    I am using the method $PC(VerificationLink)$ to display the link in the mail template. Since you said it OOTB template coded to display them as links , is there any option to add any HTML or CSS class to disable the link and make it as plain text?

  • Sorry, if my answer was misleading. But in the OOTB templates, if an URL should be displayed as a link, it was coded as such link directly in the mail template.

    Sample screenshot of right-click on the mail-signature link (URL is displayed as link)

    Sample screenshot of right-click on the same $-notation value but inserted as normal text:

    If you include your $PC(VerificationLink)$ snippet as a text it shouldn't be displayed as a link in the mail. If it will be displayed as such, then the mail client does this automatically.

    You can modify the mail template directly, for example by using the Object Browser, but your modifications may be removed, if you edit the mail template in the editor again.

  • In my case I cleared the hyperlink (by right click and removed as you mentioned already) and it is not displayed as link in the template .However it becomes clickable from the email once tested (probably it is due to mail client as you said)- whereas I wanted it as plain text


    Also I kept the HTML as target format in the Mail definition and added new CSS class (.Disable{color:#000000;background-color:transparent;font-family:Calibri; font-size:12pt; font-weight:normal; font-style:normal;cursor: not-allowed; } in the 'RichMailBody' column value of respective email template in the table DialogRichMailBody. The job is not processed at all. So do you have any quick html code to disable the link , which can be embedded in the mail template? 

  • I do not have some quick html code. If the URL is not coded as HREF in the mail template, then the mail client shouldn't display the URL as link.