Velocity Scripting - V simple 'contains' on an email domain will not work
I have set up a script that I want to use to print content as and when people have a certain email domain as the below.
It defaults to the 'else' even when the users email is xxxx.yyyy@1234.com
What have I got wrong??
#if ($lead.email.contains("@1234.com"))
<p style="font-size:22px">The following message is for @xxxx.com only domains</p>
#else
#end