Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Send HTML mail to Outlook

by esskar (Deacon)
on Apr 06, 2004 at 18:16 UTC ( #343054=note: print w/replies, xml ) Need Help??


in reply to Send HTML mail to Outlook

are you sure that you send a right formatted HTML mail...
have you set the MIME-Version? here is an sample of a well formed MIME HTML mail:
Subject: Some Subject Date: Wed, 17 Dec 2003 12:26:50 +0100 Message-ID: <E1E811923F2F054DB62E330FE5B3720544D7A7@sub.host.dom> From: "Body, Some" <some.body@host.dom> To: "Body, Any" <any.body@host.dom> MIME-Version: 1.0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <TITLE></TITLE> </HEAD> <BODY> <P><FONT SIZE=3D2 FACE=3D"Arial">This is a Test.</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">Bye,</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">Some Body</FONT> </P> </BODY> </HTML>
Have fun! :)

Replies are listed 'Best First'.
Re: Re: Send HTML mail to Outlook
by cosmicsoup (Beadle) on Apr 06, 2004 at 21:11 UTC
    I have entered the exact same META tags within the <head> tags. On Outlook it still displays it as code. On AOL it displays this in the html email:
    <html><head><META http-equiv=Content-Type content="text/html; charset= +us-ascii"></head>
    By the way, I just got MIME::Lite::HTML installed, although it doesn't seem to send my HTML to the email address. I have a perl script called weekly.pl that reads in data from a flat file and puts it into a file in HTML format. I then use the unix mail command to send the file to a list of recipients. When you attach a file via MIME, does it display it in an email or do you have to download it?

    Any and all suggestions are appreciated.

    thanks,
    Louis
      You can't expect Outlook to understand that this file is in html by looking for the mime type specified inside a <META> tag: the reason is that text/html should be specified on the envelope and not inside the content.
      What you should do is send the correct mime header before sending the content:
      Content-type: text/html This is slurped as <b>html</b> by my mail client!
      should give you the idea!
      Ant9000
        I'm sorry, but I guess I don't understand. If I begin my html code with Content-type: text/html, it just shows this as the first line of the email. How do I put it on the envelope?

        Thanks,
        Louis

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://343054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2023-03-24 18:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (61 votes). Check out past polls.

    Notices?