Sending an email with applescript/notes

I’m setting a cell in Notes: “replaceitemvalue myDoc itemname “SendTo” newvalue ToAddress”

where ToAddress is a text string (of email addresses) from a FileMkaer db.

The applescript command:

"send myDoc without attachform"

works ok with one address, but if you try and set two addresses e.g someone@company.com, another.someone@company.com

then you get a delivery failure:

“No route found to domain company.com, someone@company.com, another.someone@company.com from server companyMAIL/compnayPLC. Check DNS configuration.”

Anyone got any ideas.

Thanks in advance

Andy

Subject: Sending an email with applescript/notes

At a guess, I’d say it’s treating your multiple addresses as a single, long one, and failing accordingly.

If this was LotusScript, you’d need to set the SendTo field to be a text array of address values in order to make it work. I’m not sure how you would do that in AppleScript though.

Cheers,

  • Mike