Jump to content
Sign in to follow this  
Brad (SaneChoice Limited)

Smarty in Email Templates as Links

Recommended Posts

Hi Team,

How do I use smarty but within an email link?

In essence, I want a pretty link but use the URL supplied by Smarty.  However, when I create a link and insert the Smarty code, the recipient sees the link and it looks all broken. 

In essence, the below code does not work:

<a href="{$ticket_link}">Ticket Link</a>

Any ideas?

Share this post


Link to post
Share on other sites
19 hours ago, sanechoice said:

Any ideas?

$ticket_link already has it's own <a href> within it, so for your purpose, you'd want to use {$ticket_url} instead...

<a href="{$ticket_url}">Ticket Link</a>

Share this post


Link to post
Share on other sites

Thanks you Brian! Appreciated.  

Now,  one more question if you don't mind! CSS related for Outlook rendering. 

Do you know what CSS you need to update to stop the text having no space at all with the border?  Please see screenshot.

Outlook is a pain for rendering!!

 

Screenshot 2019-11-07 at 20.18.42.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated