Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > html in email messages

html in email messages
Thread Tools
Mac Enthusiast
Join Date: Mar 2001
Location: ~
Status: Offline
Reply With Quote
Aug 26, 2006, 03:54 PM
 
Hello,

How is it best to create an email message that displays as html in an email app? I don't think Mail can create messages like this and importing html docs into a Mail message only attaches the doc to the message, rather than display in in the message...

I have to make a newsletter mailer for my knitting group and this seems to be the best way to send stuff out...

Thanks very much,
Kent

kent m is not a member of any public groups
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Aug 26, 2006, 05:27 PM
 
Originally Posted by kent m
Hello,

How is it best to create an email message that displays as html in an email app? I don't think Mail can create messages like this and importing html docs into a Mail message only attaches the doc to the message, rather than display in in the message...

I have to make a newsletter mailer for my knitting group and this seems to be the best way to send stuff out...

Thanks very much,
Kent

Look at MIME Multipart message formatting. Create an HTML page with an inline stylesheet, images hosted on a server, and create a plaintext version. Combine the two together in a scripting language (such as PHP or Perl) separated by a unique boundary ID, and send the email through your script.

If you have access to a machine with SpamAssassin installed, send yourself a copy first so you can check out the spam score of your message.
     
kent m  (op)
Mac Enthusiast
Join Date: Mar 2001
Location: ~
Status: Offline
Reply With Quote
Aug 26, 2006, 05:41 PM
 
Wow! Okay, I was hoping for a pointer to an app that would do this. This a bit above my ability... :-)

Thanks though!

kent m is not a member of any public groups
     
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Aug 27, 2006, 10:39 PM
 
If you code your message in HTML (keep page structure fairly simple for some receiving mail apps), then view it in Safari, you can hit Command-i and Safari will send it to your Mac's mail app, opening it as a new doc.

Careful: although you CAN edit the text, it tends to mung-up the spacing in hard-to-predict ways. You can, however modify the SUBJECT line (which otherwise is the TITLE of the web page you're sending.

ANY web page you are viewing in Safari may be mailed that way.
TOMBSTONE: "He's trashed his last preferences"
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Aug 27, 2006, 10:42 PM
 
Originally Posted by Love Calm Quiet
If you code your message in HTML (keep page structure fairly simple for some receiving mail apps), then view it in Safari, you can hit Command-i and Safari will send it to your Mac's mail app, opening it as a new doc.

Careful: although you CAN edit the text, it tends to mung-up the spacing in hard-to-predict ways. You can, however modify the SUBJECT line (which otherwise is the TITLE of the web page you're sending.

ANY web page you are viewing in Safari may be mailed that way.

The problem with doing that is that I don't think it sends a plaintext equivilent, and what OS X Mail will render doesn't necessarily ensure that the email will appear as expected in other email clients.
     
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Aug 28, 2006, 05:56 AM
 
It's generally pretty darn close in rendering - except in systems like hotmail where they treat images as blocks and ignore/distort absolute positioning. (which is why I suggested simple layouts.

I've never checked it out (not having used plaintext-only reader in a while), but I've yet to get a complaint (out of hundreds of recipients) that it's not reading right.
TOMBSTONE: "He's trashed his last preferences"
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Aug 28, 2006, 08:00 AM
 
Originally Posted by Love Calm Quiet
It's generally pretty darn close in rendering - except in systems like hotmail where they treat images as blocks and ignore/distort absolute positioning. (which is why I suggested simple layouts.

I've never checked it out (not having used plaintext-only reader in a while), but I've yet to get a complaint (out of hundreds of recipients) that it's not reading right.

It supports things (such as black backgrounds) which other mailers do not.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:58 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2