I'd very much like to please develop an AppleScript to send all emails inside a specific mailbox whenever it is run. Then I can create a mailbox called "9AM", place emails inside there, and with a little help from cron/iCal, have all those emails send at 9am each day allowing me to type emails late at night but have them send in the morning.
My code below however fails on the send command.
tell application "Mail" repeat with theMessage in (every message of (mailbox "9AM" of account "accountnamehere")) send theMessage end repeat end tell
I also tried moving them to the "Outbox" mailbox but that just seems to make them disappear...
tell application "Mail" repeat with theMessage in (every message of (mailbox "9AM" of account "accountnamehere")) set mailbox of theMessage to mailbox "Outbox" end repeat end tell
Any suggestions anyone? Help greatly appreciated!
This setup would be ideal as I can just leave a Mac switched on and then even save emails to this "9AM" mailbox from my iPhone. I hope it is possible.