First Name Personalization in email
Hi all,
Hoping someone could help me with this. Been trying to send out an email with personalization on the first name based on subscribers job title. If theyre a listed as an MD we want the intro to Be Dr, (last name) otherwise just display their first name. My understanding is that this can be done using a velocity script and a simple IF statement but i have been unable to get this to display anything in my tests.
Ive made sure the fields are checked off aswell. Here is what ive come up with. Ive inherited this task from a previous employee so anyhelp would be appreciated
#if(${lead.Title} == "MD")
#set($greeting = "Dr.$(lead.LastName},")
#else
#set($greeting = "${lead.FirstName},")
#end
In the actual email body ive tried referencing the token and the greeting field, both of them however display nothing.