schedule a delivery in mail

Discussion in 'Mac Programming' started by I'm a Mac, Apr 17, 2008.

  1. I'm a Mac macrumors 6502

    Nov 5, 2007
    I was wondering if it was possible to schedule a delivery in an email- I download the mail scripts applications, but I wanted to change some things, so I was wondering if there was a basic applescript that lets me schedule an email.
  2. lee1210 macrumors 68040


    Jan 10, 2005
    Dallas, TX
    This should do it:

    tell application "Mail"
    	set newMessage to (make new outgoing message with properties {subject:"This is the subject", content:"Test content"})
    	tell newMessage
    		make new to recipient at beginning of to recipients ¬
    			with properties {address:""}
    	end tell
    	send newMessage
    end tell
  3. HiRez macrumors 603


    Jan 6, 2004
    Western US
    Do you mean schedule as in setup a mail to be sent ASAP, or schedule one for later delivery at a specific time/date? Two different things, but if the latter you could maybe script, one of the choices for alarm is to send an email. Or at a lower level, add a cron entry.
  4. I'm a Mac thread starter macrumors 6502

    Nov 5, 2007

Share This Page