Re: Entourage HTML Email: Tables and Graphics?
Re: Entourage HTML Email: Tables and Graphics?
- Subject: Re: Entourage HTML Email: Tables and Graphics?
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 20 Jul 2003 11:09:37 -0700
Entourage can't make "complex" HTML messages with tables and graphics. When
it _reads_ those, it uses Internet Explorer's HTML rendering engine - you're
actually looking at a web-page from IE displayed in the Entourage window.
You'll have noticed that you can't send anything but styled text in HTML in
the UI.
However, there is a trick for sending full HTML documents, as long as you
have uploaded any graphics (or the whole document) to a web server, and use
full "absolute" URLs, not relative URLs, throughout.
See my "Send Complex HTML X" script at
MacScripter.net <
http://scriptbuilders.net/>
It's open-source. You might want to adjust something. It can't open a draft
window or the trick is lost and you lose the HTML. It sends the message
without opening it.
--
Paul Berkowitz
>
From: Jason Bourque <email@hidden>
>
Date: Sun, 20 Jul 2003 13:28:51 -0400
>
To: AS <email@hidden>
>
Subject: Entourage HTML Email: Tables and Graphics?
>
>
Hello,
>
>
>
I have a script below that creates an email in Entourage. The text looks
>
formatted but doesn't contain the tables or the placed graphics.
>
>
The same file that I am reading to make the body of the email looks fine in
>
a browser.
>
>
>
The account has a set up header of context-type text/html
>
>
Am I missing something? A header or something?
>
>
>
>
>
>
set vMsgContent to "<html>
>
>
<head>
>
<meta http-equiv=\"content-type\"
>
content=\"text/html;charset=ISO-8859-1\">
>
<meta name=\"generator\" content=\"Adobe GoLive 6\">
>
<title>This is a Titlebar</title>
>
</head>
>
>
<body bgcolor=\"#ffffff\">
>
<table width=\"500\" border=\"0\" cellspacing=\"2\"
>
cellpadding=\"0\" align=\"center\">
>
<tr height=\"21\">
>
<div align=\"left\">
>
<font size=\"2\"
>
face=\"Arial,Helvetica,Geneva,Swiss,SunSans-Regular\"><b>Dear
>
CustomerName,</b></font>
>
<p></p>
>
</div> </tr>
>
</table>
>
</body>
>
>
</html>"
>
>
set vRecipient to "email@hidden"
>
set vMsgSubject to "This is a subject"
>
>
tell application "Microsoft Entourage"
>
activate
>
>
set vAccount to POP account named "Specials"
>
-- return result
>
>
set vNewMsg to make new draft window with properties ,
>
{recipient:vRecipient, subject:vMsgSubject, account:vAccount,
>
content:vMsgContent, has html:true}
>
>
-- send vNewMsg
>
>
end tell
>
_______________________________________________
>
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.
_______________________________________________
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.