AnsweredAssumed Answered

Calculated to e-mail

Question asked by rudihoremans on Apr 11, 2013
Latest reply on Apr 15, 2013 by philmodjunk


Calculated to e-mail


     In a script i loop through all records and depending on the text in a certain field another script is called and performed to send an e-mail with a fixed text plus variable text extracted from certain fields. This works fine. The problem i have is that depending on the content of a field "department", the recipient of the e-mail should be different. I tried to have the TO field as a calculation:

     case (department = "A" ; " ;" ;

     department = "B"  ; " ;" )

     This does not seem to work. What am i missing ?

     i am using FM12 advanced server and mails are sent via smtp.