Page 1 of 1

Salutation of first name, BUT what if there is no first name

Posted: Mon Aug 24, 2009 3:23 pm
by fredf
In our situation all of our emails will begin with Dear FIRSTNAME however if the customer didn't provide a first name (therefore this field is blank in the database) then we want them to be greeted as Dear Colleague. We put 'colleague' in as a salutation but can find no information as to how you code the email to basically say 'use what exists in the firstname field but if the firstname field is null then use Colleague'. How do we do this?

Posted: Tue Aug 25, 2009 10:50 am
by maschoff
If you do not have a firstname you could set gender to unknown and use the neutral salutation. Or you could define your own database field and use if for the salutation.