Eudora: creating email with html...
Eudora: creating email with html...
- Subject: Eudora: creating email with html...
- From: David Crowe <email@hidden>
- Date: Thu, 13 Feb 2003 10:24:50 -0700
I am trying to create a Eudora email which includes the specification
of some of the HTML.
One way I have done this in the past is to create a text file
containing the email, which Eudora can read in as a mailbox. This
works quite well, but is complicated, as it requires the creation and
deletion of temporary files etc.
I have written the following script to create a Eudora email from
AppleScript, specifying the major pieces as strings. I'd like to be
able to specify the body as HTML. Currently, if I insert HTML tags, I
just end up with them showing up in the email.
Is there a way to do this?
(and I apologize to Jon Delacour or others who may have explained
this in the past to me, when I wasn't having a 'learning moment').
- David Crowe
(*
* CreateEudoraMessage(Destination,Personality,Subject,Cc,Bcc,Body)
*)
to CreateEudoraMessage(Destination, thePersonality, theSubject, Cc,
Bcc, theBody)
if Destination = "" and Bcc = "" then
display dialog "CreateEudoraMessage: Message must
have at least one 'To' or 'Bcc' address."
return
end if
if theSubject = "" then
display dialog "CreateEudoraMessage: Message must
have a subject."
return
end if
tell application "Eudora"
activate
try
set pRef to a reference to personality thePersonality
on error
display dialog "CreateEudoraMessage: No such
Eudora personality: " & thePersonality & "."
return
end try
set msgref to (make new message at end of mailbox "Out")
tell msgref
if Destination "" then set field "To" to Destination
set its personality to pRef
set field "Subject" to theSubject
if Cc "" then set field "Cc" to Cc
if Bcc "" then set field "Bcc" to Bcc
set its body to theBody
end tell
end tell
end CreateEudoraMessage
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.