AnsweredAssumed Answered

FM13 + OS Mail

Question asked by aouttier on Oct 6, 2016

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>"}

  activate

  tell newMessage

          set subject to "xxx"

         activate

         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.

Outcomes