Hello Joseph,

On Tuesday, June 11, 2002 at 11:47:50 PM you wrote (at least in part):

JN> The macro for first name (%TOFNAME) in the template interprets all of
JN> that to read, in the message editor:  "Mr."

'%ToFName' ain't the macro for 'First Name' of recipient, but for
'first name' in recipient field.
The difference is: you can differ between 'First Name' as e.g.
'Joseph' for your name, while '%ToFName' goes for the 'first instance
of a name' it sees there, and this is 'Mr.' in your case.
Only '%ABToFirstName' can figure out, what the _FIRST_ name of a
person is, as this name is written (hopefully) into a field named
'first name'.
So if you write a mail to somebody in your AB and in 'To:' there is

"Doe, John" <[EMAIL PROTECTED]>

'%ABToFirstName' can extract 'John' as 'First Name' from AB, while
'%ToFName' takes the very first name it sees. There's no chance for
'%ToFName' to identify _the one_ string within all given, which
represents the first name.

JN> Any ideas how to fix?

Use consequently '%ABToFirstName', maybe in addition with an '%IF'
construct, that uses '%ToFName' if '%AB...' macros are empty because
you're not writing to somebody from your address book.
-- 
Regards
Peter Palmreuther                            mailto:[EMAIL PROTECTED]
(The Bat! v1.60q on Windows 2000 5.0 Build 2195 Service Pack 1)

I used to be an agnostic, but now I'm not so sure.


________________________________________________________
Current Ver: 1.60q
FAQ        : http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]
Bug Reports: https://bt.ritlabs.com

Reply via email to