Logo Rob Buckley – Freelance Journalist and Editor

SCHWIF2004

This free script allows you to send complex HTML via Entourage. It will

  1. Take an arbitrary HTML file and embed it in an outgoing Entourage message
  2. Better still, it will parse the HTML for links to files (images, etc), isolating duplicates…
  3. Attach the file to the message with base64 encoding (using UNIX magic to guess the MIME type)…
  4. then rewrite the HTML to reference the attachment rather than the local file.
  5. If you run the script on a draft message, whatever text you type into the message body will be used as the plain text alternative to the HTML (for non-HTML compatible clients).

It is based on Paul Berkowitz's script 'Send Complex HTML X'.

System requirements

Download the latest version (0.5)
Download the previous version (0.4.1), just in case it doesn't work for you.

Subscribe to the update feed Subscribe to the update feed

Support

This script is now unsupported, since I really don't have the time any more! However, I will continue to maintain it

Version history
0.5 No changes from b2
0.5b2 Fixed a bug that would incorrectly warn OS X 10.3 users they couldn't use the script
0.5b1 Added support for background images referenced using attributes in the body tag or in stylesheets (not 'background-url' though)
Fixed a problem with Exchange server address books following previous Entourage update
Still no support for non-ASCII characters in From/To/Subject fields, etc. Sorry. I'm working on it
Improved the documentation slightly
Added a warning for pre OS X 10.3 users
0.4.1 Fixed bug affecting messages that referenced no other files
Fixed bug that stopped ActiveX param tags from being rewritten
0.4.0 Message parser rewritten for greater speed
Can now cope with paragraph returns in the middle of tags (typical of Nvu output)
Unquoted image names won't produce errors
File URLs with encoded characters now parsed correctly
Hopefully fixed the Communigate 'bloat' problem
JavaScript now ignored
0.3.0 Now validates to MIME 1.0
Compatible with QuickMail Pro Server
0.2.3 Fixed a bug where ----AppleScriptBreakHTML-- would appear at the bottom of messages with no embedded files
0.2.2 Fixed a bug where multiple recipients wouldn't be listed correctly in message headers
0.2.1 Minor update to stop messages being rewritten by overzealous mail servers
0.2 Script can now use files stored anywhere in the file system, not just those in the same folder as the HTML file
Script will now rewrite links in ActiveX controls (Flash, Shockwave, RealVideo, QuickTime and Windows Media)
Script now only adds one version of each referenced file to the email, rather than once for every occurrence.
Mail, Netscape and other email clients will now display message correctly
Script will now ignore all links to externally hosted files, not just those referenced with http://
0.1 Initial release

Last updated: November 14, 2007

Comments


Hi, I'm trying to use the script in Entourage 2004 (on OS X 10.4.9) and getting this error:

Your message does not conform to RFC2822 standard

Could not sent mail.

Any ideas for what might be going wrong?

Jennifer

In reply to Jennifer Berger's comment

It means your mail server doesn't like the message and you probably won't be able to use the script. In particular, the mail server doesn't seem to like MIME messages since RFC2822 is the base specification for text emails, to which MIME - which is necessary for HTML emails - is an extension.

I'm running in to similar issues to Jennifer: email servers like Earthlink don't like emails generated by this script, but they are ok with complex html emails from Outlook. Have you looked in to why they work from Outlook but not from your script? If not, I'll do some poking around, as I love this script.
Dan

In reply to Dan Pouliot's comment

I have, but it's simply too much effort to get it to work with every possible email server. It would also probably require a whole load of AppleScript Extensions installed for the script to work, since I suspect encoding, line lengths, etc are all part of the problem and trying to write AppleScript native routines would make the script too slow to be usable. But anyone's welcome to try.

If you are having problems with your email server, there are also plenty of bulk mailer applications that can compose HTML mail: this script is merely intended as an aid, not something for production workflows.

I used the script successfully with Entourage however, the message seems to continuously be sent daily and recipients are not happy. Could this be the script or other issues?

In reply to Wes's comment

That would be 'other issues'

Post a comment