Thank you for those suggestions. It works a little better without all those frames, but I'm still not getting all the text read. Oh well.

Another quick question. I think I've got the code about right, but now I'm getting the error message below. Any ideas?

C:\A\backup\scripts>mail_attach2.pl Bareword found where operator expected at C:\A\backup\scripts\mail_attach2.pl line 19, near "Filename =>'butterf +ly" (Might be a runaway multi-line '' string starting on line 18) (Do you need to predeclare Filename?) syntax error at C:\A\backup\scripts\mail_attach2.pl line 19, near "Fil +ename =>'butterfly" Bad name after ani' at C:\A\backup\scripts\mail_attach2.pl line 19.
Again, here is my code:
use MIME::Lite; ### Create a new multipart message: $msg = MIME::Lite->new( From =>'johns@mindspring.com', To =>'peter21458@aol.com', #Cc =>'some@other.com, some@more.com', Subject =>'A test with attachment', Type =>'multipart/mixed' ); ### Add parts (each "attach" has same arguments as "new"): $msg->attach(Type =>'TEXT', Data =>"Here's the file you wanted" ); $msg->attach(Type =>'animated cursor', Path =>'C:\a\cursors\', Filename =>'butterfly.ani' ); if ($I_DONT_HAVE_SENDMAIL) { MIME::Lite->send('smtp', "smtp.mailrelay.usps.gov", Timeout=>60) +; } $msg->send; ### will now use Net::SMTP as shown above #$text = $msg->as_string;
Thanks for all your help!

Rob


In reply to Re: Re: Re: Re: Using MIME-Lite to send attachment by rscott212
in thread Using MIME-Lite to send attachment by rscott212

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.