Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTML in mail



I've searched the lists for the answer to this, and the answer seems to be "it can't be done", but I thought I'd give it one more try:

tell application "Finder"
set theFileLocation to choose file with prompt "Please choose an HTML file to be sent:"
tell application "Mail"
activate
set theFile to open for access theFileLocation without write permission
set theHTMLContent to (read theFile from 1 to (get eof theFile)) as styled text
close access theFileLocation
log class of theHTMLContent
set the_message to make new outgoing message at beginning with properties ¬
{subject:"the_subject", visible:true, content:theHTMLContent}
tell the_message
set theName to "Some Body"
set theAddress to "email@hidden"
make new to recipient at end of to recipients with properties {name:theName, address:theAddress}
end tell
end tell
end tell


I saw a script somewhere that used the construct:
tell the_message
set html content to theHTMContent
end tell

But that doesn't work, and isn't in the dictionary.

Anyone? Thanks.


Jim Weisbin
human
138 5th avenue. 3rd floor, nyc, ny 10011
telephone 212 352 0211
facsimile  212 352 0210



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

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.