0 Replies Latest reply on Oct 6, 2016 5:37 AM by aouttier

    FM13 + OS Mail


      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 {"xxx.xxx@telenet.be", "yyy.yyyy@telenet.be"}


      tell application "Mail"

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


        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.