• 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
Adding additional headers to new outgoing Mail message?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding additional headers to new outgoing Mail message?


  • Subject: Adding additional headers to new outgoing Mail message?
  • From: Don Johnson <email@hidden>
  • Date: Tue, 8 Nov 2005 16:06:10 -0500

Hello,

I've been sending Mail messages from FileMaker (5.5) using AppleScript for a few years now, and have decided to get "fancy" and format the messages in HTML rather than plain text.

However, I can't figure out how to set the "Content-Type:" header using AppleScript ... or do anything else, for that matter, which tells Mail to display the message as HTML.

While I can get AppleScript to read headers from messages already received, attempting to set or read headers from a new outgoing message (as in the following script) throws an error ... what's up?

tell application "Mail"
set newMessage to make new outgoing message with properties {sender:"email@hidden", subject:"test", content:"body" & return}
set theHeaders to the name of every header of newMessage
end tell



many thanks, Don

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Adding additional headers to new outgoing Mail message?
      • From: Malcolm Fitzgerald <email@hidden>
    • Re: Adding additional headers to new outgoing Mail message?
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Eppc crash II : another post from the archives
  • Next by Date: Re: do shell script "sort" not working
  • Previous by thread: Eppc crash II : another post from the archives
  • Next by thread: Re: Adding additional headers to new outgoing Mail message?
  • Index(es):
    • Date
    • Thread