do you want to send a text attachment in addition to an html embedded email?
or do you want to show one or the other, ie - if the person has their email client to only accept text msgs, it'll show just the plain text message, otherwise it shows the html...if this is the case, you can send a mime 1.0 compliant multipart/alternative email. html and text. This will work on hotmail, yahoo, excite, and most other web-based email services. ---------- my $message = qq( Content-type: multipart/alternative; boundary="$time" Mime-version: 1.0 --$time Content-type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7-bit $msg_text --$time Content-type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7-bit $msg_html --$time-- ); -------- --- Sven Bentlage <[EMAIL PROTECTED]> wrote: > 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] > __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]