AnsweredAssumed Answered

FM13 + OS Mail

Question asked by aouttier on Oct 6, 2016
Latest reply on Mar 26, 2018 by techt

I'm trying to write an applescript inside FM to send an mail with os mail. The mail must be send to several mail addresses from a specific account.


When I use the code 'make new recipients...", it changes the account back to the standard account of mail. What, is wrong?


The code is the following.


set Geadresseerde to {"", ""}


tell application "Mail"

  set newMessage to make new outgoing message with properties {visible:true, sender:"Firstname Lastname <>"}


  tell newMessage

          set subject to "xxx"


         repeat with i from 1 to count Geadresseerde

             make new to recipient at end of every to recipient with properties {address:item i of Geadresseerde}

         end repeat

end tell

end tell

It's the purpose, when this is working, to get the parameter 'Geadresseerd' from FM. But, first, this must be working.