It sounds like you solved the problem already by sending text/plain messages
to Hotmail accounts. For some reason I've never had an issue with that,
though - maybe it's because I don't actually attach the image that is placed
inline; I import it from a location on my website. You could also try
forcing base64 or quoted-printable encoding. For example:

#!/usr/bin/perl -w

use strict;
use MIME::Lite;

my $msg = MIME::Lite->new(
  From     =>'[EMAIL PROTECTED]',
  To       =>'[EMAIL PROTECTED]',
  Subject  =>'Hello again',
  Type     =>'multipart/related',
  Encoding =>'base64'
 # or
 #Encoding =>'quoted-printable'
);
$msg->attach(Type => 'text/html',
  Data => qq{ <BODY BGCOLOR=#FFFFFF>
<H2>This is a header.</H2>
<P>This is another test.</P>
<BR>
<IMG SRC="http://path/to/the/image.gif";> # not attached
</BODY> }                                            # but imported
);                                                   # from website

$msg->send();


# -----
# Scot R.
# inSite

# P.S. You're going to try to wrestle Microsoft?
# (they own Hotmail....)
# See where it got the Justice Department? <grin>



-----Original Message-----
From: Sven Bentlage [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 5:02 AM
To: [EMAIL PROTECTED]
Subject: Hotmail.com vs. MIME:Lite


Hi everyone,

(thanks for your tips, Scot).

I managed to get my script working.
It sends a HTML mail via MIME::Lite, with a.txt attachment. All mail
clients I tested worked just fine.
The only problem is Hotmail.com!!
Hotmail.com neither displays the HTML mail, nor am I able to download
the txt attachment. Hotmail.com tells me, there is a virus in the txt
attachment...... ???
Hotmail.com does display plain text messages.....

I got no idea what to do or how to solve it.
(RIght now I`m using a little sub checking whether it's a hotmail
address and sending only plain text to hotmail, while sending  html to
all others....)

Does anyone have an idea how to solve that problem?


Thanks for your help,

Sven
On Montag, September 16, 2002, at 06:48  Uhr, Scot Robnett wrote:

> Yes, you can send text attachments. It's all documented at the link I
> included in the last message...
>
> Scot R.
>
>
>
>
> -----Original Message-----
> From: Sven Bentlage [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 15, 2002 7:42 AM
> To: [EMAIL PROTECTED]
> Subject: SMTP/HTML/TEXT
>
>
> Hi everyone,
> I encountered another problem with my mailscript.
> Hotmail.com users and some people who use strange mail clients don't
> get anything displayed at all.
> is there anyway to send a html mail via MIME::Lite with an attached
> text part of it?
>
> Thanks for your help.
>
> Sven
> On Donnerstag, September 12, 2002, at 01:46  Uhr, Scot Robnett wrote:
>
>> #!/usr/bin/perl -w
>>
>> # Link for Sven:
>> # http://search.cpan.org/author/ERYQ/MIME-Lite-2.117/lib/MIME/Lite.pm
>>
>>
>> # Send HTML document with inline images
>>
>> # MIME::Lite a purely perly sorta thing, so
>> # if it's not installed in @INC we can put
>> # it there without problems....
>>
>> BEGIN {
>>  unshift(@INC,"/path/to/our/own/modules");
>> }
>>
>> use strict;
>> use MIME::Lite;
>>
>> # Create a new MIME Lite object
>> my $msg = MIME::Lite->new(
>>    From    =>'[EMAIL PROTECTED]',
>>    To      =>'[EMAIL PROTECTED]',
>>    Subject =>'Hi',
>>    Type    =>'multipart/related');
>>
>> # Add the body to your HTML message
>> $msg->attach(Type => 'text/html',
>>              Data => qq{ <BODY BGCOLOR=#FFFFFF>
>>              <H2>Hi</H2>
>>               <P ALIGN="left">
>>                This is an HTML message.
>>               </P>
>>               <P ALIGN="left">
>>                <A HREF="http://foo123.com/";>Here's a link</A>.
>>               </P>
>>               <P ALIGN="middle">
>>                <IMG SRC="cid:img.jpg";>
>>               </P>
>>               </BODY> });
>>
>> # Attach the image
>> $msg->attach(Type => 'image/gif',
>>              Id   => 'img.gif',
>>              Path => '/path/to/img.gif');
>>
>> # Send it
>> $msg->send();
>>
>>
>> -----
>> Scot Robnett
>> inSite Internet Solutions
>> [EMAIL PROTECTED]
>> http://www.insiteful.tv
>>
>>
>>
>> --
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to