• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sending Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending Mail


  • Subject: Re: Sending Mail
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 28 Jul 2009 17:00:28 -0500

On Jul 28, 2009, at 10:37, Yvan KOENIG wrote:
I ran it under 10.4.11 and it behaves flawlessly !
______________________________________________________________________

The Mail script didn't work for me on Leopard (10.5.7).

No recipients are created, so the email cannot be sent.

Try this:

tell application "Mail"
activate
set newMessage to make new outgoing message
tell newMessage
set sender to "email@hidden"
set subject to "Mail Script"
set content to " This is an AppleScript mail test"
make new to recipient with properties {name:"Chris", address:"email@hidden"}
set visible to true
delay 1 -- so you can see the script in action
send
end tell
end tell


Best Regards,

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Sending Mail
      • From: Felix Peregrino <email@hidden>
References: 
 >Sending Mail (From: Mike Lally <email@hidden>)
 >Re: Sending Mail (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Unwanted dialog if mounting fails
  • Next by Date: Re: Sending Mail
  • Previous by thread: Re: Sending Mail
  • Next by thread: Re: Sending Mail
  • Index(es):
    • Date
    • Thread