AnsweredAssumed Answered

Calculated to e-mail

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

Title

Calculated to e-mail

Post

     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" ; "recipient1@mail.com ; recipient2@mail.com" ;

     department = "B"  ; "recipient3@mail.com ; recipient4@mail.com" )

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

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

Outcomes