Click to See Complete Forum and Search --> : If-statements in emails?


vanna
03-19-2003, 10:14 AM
I am creating batch "mail merge" emails. The data is coming from our own software (not a database such as Access). We have multiple fields which could contain the piece of information I need to complete my sentence with the merged data. Is there a way to compare the 2 sets of data for blank or existence and select which one to merge in?

Within print letters I can do this with an IF-statement in Microsoft Word, but I cannot figure out how to do it in my HTML email.

Ex: {IF {MERGEFIELD COMPANY} = "C" "{MERGEFIELD CONTACT NAME}"}{IF {MERGEFIELD COMPANY} = "" "{MERGEFIELD CUSTOMERNAME}"}

sciguyryan
08-11-2003, 06:50 AM
hi,


if you wish this to be answered proporly i would Re post in JavaScript Forum as they should be able to answer it for you.;) ;) ;) ;) ;)

nkaisare
08-11-2003, 10:52 AM
Javascript is not a good idea. You'll have to use a script to dynamically create email text and send them individually using something like a sendmail program.

sciguyryan
08-11-2003, 01:27 PM
hi,



whta about the DHTML forum do you think it shouldgo in that forum then.