Hi Anirban, @19-Jun-2003, 10:09 +0530 (05:39 UK time) Anirban Das said
> I wanted to do conditional attachment in TB. I gave the following > command in the template > %if:"%AbTOCountry"="a":"%attachfile=^d:\temp\acentres.xls^":"%- > %if:'%AbTOCountry'='b':'%attachfile=^d:\temp\acentres-intl.xls^':' > I am trying to do group mailing. Nothing is attached to any of the > mails fulfilling any of the 2 conditions. Can someone tell me what > is wrong in the above command. 1). You need a closing " character to complete the else clause from the first %if. 2) 'Group' mailing? You mean an ordinary mail to an address book group? Or do you mean mass mailing? If the former, then no surprise, it won't work. You need to do a "mass mailing" to make this work and the condition should go into the mass mailing template. If you're already doing that, then I have no idea what might be going wrong. You could try "dumping" values from the template to find out what it's seeing and thinking... %%AbTOCountry="%AbTOCountry" %if:"%AbTOCountry"="a":"%attachfile=^d:\temp\acentres.xls^":"%- %if:'%AbTOCountry'='b':'%attachfile=^d:\temp\acentres-intl.xls^':' The dump syntax will result in the output of: %AbTOCountry="x" into the body of the message. -- Cheers -- .\\arck D Pearlstone -- List moderator TB! v1.63 Beta/11 on Windows XP 5.1.2600 Service Pack 1
________________________________________________________ http://www.silverstones.com/thebat/TBUDLInfo.html
