Pages: 1
RSS
Personalized e-mail.
 
Hello,

Just I question.

Suppose I write a mail to Anna, Bert and Caroline. Can I create one message that "expands" to:

Hello Anna,
Hello Bert,
Hello Caroline,

for instance using something like

Hello $FIRSTNAME,

using the info from the address book?

Thanks,
JP.
 
To use the info from the address book you need to use the ABnnnPPP macro.
Values for nnn are To, From, Reply, OTo, OFrom and OReply
Values are among others: Name, FirstName, Birthday, Country
For a full listing see TB's help file: Macros/Full alphabetic list of macros

You'd need something like %ABToFirstName, but that'll only give you the first name of the first recipient.

If I read you correctly you want to use the names for all intended recipents. To do that you'll need a recursive template that picks all addressees.

Lucky for you a kind guy called Robin Anson wrote a template like that and had it added to the "Macro and sollutions library" at our official FAQ. This is a link straight to the template: http://cgi.silverstones.com/library.php#greet_all_recipients
Save the quick template on that page between your own quick templates and use the name "Greet_All_Recipients", as it is a recursive template it'll call itself so unless you go rewriting the thing yourself that name is important.
In your regular templates you use %QT("Greet_All_Recipients") to call the template.

__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
Pages: 1