HTML emails in Entourage
HTML emails in Entourage
- Subject: HTML emails in Entourage
- From: Sovereign Diamonds <email@hidden>
- Date: Mon, 11 Feb 2008 14:10:06 +0000
- Thread-topic: HTML emails in Entourage
I'm sending emails via Entourage in HTML. I have my Entourage default set to
sending as HTML and previously I would just copy and paste text into the
emails so preserving all the original formatting, linefeeds, spaces etc.
We are now trying to automate the process using the script below. Initial
attempts failed with Entourage ignoring the default and sending in plain
text.
With some excellent help from dev_sleidy the script was changed and
Entourage's settings in Account/Options set to read 'content-type,
text/html'. This now permits me to send HTML emails preserving the correct
linefeeds. My problem now is that in some emails the text is positioned with
the use of 'spaces' - is there a way of preserving these spaces?
set vEmailAdd to "email@hidden"
set strRecipientName to "ABC_Jane"
set vClipboard to the clipboard
set vEmailSubject to "test invoice"
set {oASstid, AppleScript's text item delimiters} to {AppleScript's text
item delimiters, return}
set vClipboard to text items of vClipboard
set AppleScript's text item delimiters to "<br>"
set vClipboard to vClipboard as string
set AppleScript's text item delimiters to oASstid
set vClipboard to "<html><body>" & vClipboard & "</html></body>"
tell application "Microsoft Entourage"
set composeMessage to (a reference to (make new outgoing message with
properties {recipient:{address:vEmailAdd, display name:strRecipientName,
recipient type:to recipient}, content:vClipboard, subject:vEmailSubject}))
--send composeMessage
end tell
Regards
David McMillan
http://SelectSpecs.com
_______________________________________________
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