Re: Generating an HTML email in Eudora...
Re: Generating an HTML email in Eudora...
- Subject: Re: Generating an HTML email in Eudora...
- From: John Delacour <email@hidden>
- Date: Wed, 30 Oct 2002 23:05:04 +0000
- Mac-eudora-version: 5.3a8
At 1:23 pm -0700 30/10/02, David Crowe wrote:
I have been trying to find a solid way to generate an html email in
Eudora for some time, and I have finally come up with a solution I'm
comfortable with, so I thought I'd share it.
I went through all this on the list quite recently with examples. Eg:
Message-Id: <p05200700b9849f7e9243@[158.152.20.126]>
Date: Sun, 18 Aug 2002 02:22:50 +0100
I had initially thought about changing the setting in Eudora
(<x-eudora-setting:9014>). But, I don't think this would work well,
because this setting is global
Only if you set it globally. You can set it for one personality
without affecting the others. You can have up to 99 different
personalities for different special purposes.
A somewhat cleaner and more robust method is the following:
Generate html in some fashion (e.g. using FileMaker to set a text
field to the raw html, and then exporting that one field to a
temporary text file). Note that the format of the first few lines is
critical. I use:
From myemailaddress Fri Oct 25 08:08:08 2002
To: email@address
Subject: subject of email
Date: Fri Oct 25 08:09:10 2002
Using AppleScript do the following:
Convert the file type/creator type to TEXT/CSOm so that Eudora thinks
that the text file is a mailbox....
None of that is necessary. You can create the message directly:
set headers_ to "Content-Type: text/html
To: jd@eremita
Subject: Eudora"
set body_ to "<html><font face='Georgia'
size='+4' color='#880033'>
<center>
ABCDE
<hr width='30%'>
FGHIJK
</center>
</font></html>"
set message_ to headers_ & return & return & body_
tell app "Eudora"
make message at end of mailbox 3 with data message_
set m to send again result
tell m to "other instructions"
end
-- JD
_______________________________________________
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.