Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

How to Send an Email Message as HTML?

 [1/5] from: tim::johnsons-web::com at: 6-Sep-2001 9:04


On Thu, Sep 06, 2001 at 07:54:17PM +1000, Allen Kamp wrote:
> Hi Tim, > > What type are you after? > Do you want, > > A. Just send the page with links to the interent for the images? > B. The images embedded in the email msg or
The client wants his customer to receive an email message that has all the appearances of a web page. Yes, it would have a background image, as will as link and perhaps pictures. We are talking about B as one of the options. They will have the option of sending plain text as well.
> (A). Is as simple as Cyphre example, though you may also need to set a base > address for the page or make the links full rather than relative.
<<quoted lines omitted: 22>>
> and page format (emailing financial reports with embedded graphs), so could > provide some incite here.
That might be very helpful to see the non-specific code.
> Cheers, > > Allen K
Thanks Allen
> ----- Original Message ----- > From: "Tim Johnson" <[tim--johnsons-web--com]>
<<quoted lines omitted: 22>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com

 [2/5] from: tim:johnsons-web at: 5-Sep-2001 20:05


Hi : I'd like to use rebol to send an email message as an html document. I'm finding it quite trivial to imbed the message with html code, BUT when the message arrives, it is just plain raw html. I believe that the header needs some modification, but am not sure what it is. Anyone have any ideas? TIA Tim

 [3/5] from: deadzaphod:flyingparty at: 5-Sep-2001 21:00


> when the message arrives, it is just plain raw html. > I believe that the header needs some modification, but > am not sure what it is. > Anyone have any ideas?
probably this? Content-Type: text/html Cal

 [4/5] from: cyphre:volny:cz at: 6-Sep-2001 9:33


Hi, Actually, I need this yesterday night so here is little example: -------------------- header: make system/standard/email [ content-type: "text/html; charset=windows-1250" ;place charser code of your coutry ] send/header [test--test--org] "blablabla" header --------------- regards Cyphre

 [5/5] from: allenk:powerup:au at: 6-Sep-2001 19:54


Hi Tim, What type are you after? Do you want, A. Just send the page with links to the interent for the images? B. The images embedded in the email msg or (A). Is as simple as Cyphre example, though you may also need to set a base address for the page or make the links full rather than relative. Advantages - 1. Email is light and doesn't require the images to be bound in the doc (less band width through your mailserver) 2. Really easy to do. Disadvantages - 1. If the client is behind a fire wall or goes of line to read email, they may not see any pictures (just std html placeholders 2 text/html type is not understood by all email clients, (sometimes you have to use quoted printable with undesired results). (B) Requires creating a multipart mime document with base64 encoded attachments and uses CID tags (interenal doc mime content ID ref) to allow the html email extract and display the image when the email is shown. Advantage. 1. Client gets entire msg, no missing images. Great for offline storage/viewing. 2. Can included a plain text version of the same msg for mime challenged email readers Disadvantages. 1. Size of email. 2. More complicated to create. 3. may only work for a limited range of email clients. I have written a version of B but it was very tailored for a specific client and page format (emailing financial reports with embedded graphs), so could provide some incite here. Cheers, Allen K

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted