• 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: HTML Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTML Mail.app


  • Subject: Re: HTML Mail.app
  • From: wayne melrose <email@hidden>
  • Date: Fri, 26 Aug 2011 13:54:50 +0200


On Aug 26, 2011, at 1:52 PM, Brian Christmas wrote:

Wayne, this worked fine for me. Note you can set the content of the message after your creation of the message header. No hidden bits.

Santa

set strSubject to "test"
set strRecipientEmail to "email@hidden"
set strHTML to "<html><body><strong>This is a test</strong><p>and so is this</p></body></html>"

tell application "Mail"
set objNewMessage to make new outgoing message with properties {subject:strSubject, html content:"", visible:true}
tell objNewMessage
set html content to strHTML
make new to recipient at end of to recipients with properties {address:strRecipientEmail}
send
end tell
end tell




yeah it's working for me too, it's just that it was not making the message visible. I'm not at all worried about that though as the use itsn't really meant to see it anyway. 

Thanks 
 _______________________________________________
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

References: 
 >HTML Mail.app (From: wayne melrose <email@hidden>)
 >Re: HTML Mail.app (From: wayne melrose <email@hidden>)
 >Re: HTML Mail.app (From: Brian Christmas <email@hidden>)
 >Re: HTML Mail.app (From: wayne melrose <email@hidden>)
 >Re: HTML Mail.app (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: HTML Mail.app
  • Next by Date: Re: Finder Selection Bug in Lion
  • Previous by thread: Re: HTML Mail.app
  • Next by thread: Wasting my time with do shell script "sips ... and long path
  • Index(es):
    • Date
    • Thread