Scripting Mail: Defining the Sender & Adding Recipients

Hi !
I could really use some help scripting Mail.
I’ve managed to get the basics operational but my attempts to set the Sender and add a list of recipients has resulted in CRASHING Mail !!! Ouch.

Here’s where I’m at:

I have 5 email accounts and I need to select the correct one for the out going email.

I have a list (BCCList) of email addresses obtained from a spreadsheet (it is defined as a List not a String). I have been dumping them in as a string but mail does not automatically recognize them as email addresses and thus it does not work. I understand I have to load them in with a Repeat loop but something is still not working.

I’m not including my code as it literally crashes Mail.

Thanks for your help!!


May help to look at message #3 in

Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) mercredi 29 avril 2020 21:40:45

This has helped tremendously !!
My script is working !!:cool:

I will be going through that thread in great detail :slight_smile:

Thanks again!