Writing email script
Hi Community,
I am not an expert on writing email scripts so I would love your help writing one for an upcoming email send.
The logic I want to use is based on the Lead Owner Email Address
- If Lead Owner Email Address = valeriearmstrong@upserve.com, return the URL calendly.com/valeriearmstrong
- If Lead Owner Email Address = notvaleriearmstrong@upserve.com, return the URL calendly.com/notvaleriearmstrong
- All else, return the URL calendly.com/default
Here is my best guess on how I would write this. If I'm missing any best practices, please let me know.
#set($valeriearmstrong = "calendly.com/valeriearmstrong”)
#set($notvaleriearmstrong = "calendly.com/notvaleriearmstrong”)
#set($defaultvalue = "calendly.com/defautvalue”)
#if (${lead.Lead_Owner_Email_Address} == “valeriearmstrong@upserve.com")
<a href="http://${valeriearmstrong””>Book time with Val</a>
#elseif (${lead.Lead_Owner_Email_Address} == “notvaleriearmstrong@upserve.com")
<a href="http://${notvaleriearmstrong}”>Book time with Not Val</a>
#else
<a href="http://${defaultvalue}”>Book time with our MOPS Team</a>
#end