I hope someone can help me. I've tried everything I can think of. I am using mime::lite to try to send an email which will have as the "body" of the mail -- the data from a .txt file. It will also have an attachment of another .txt file. I can get it to attach either one, or both files, but cannot get it to have the data I want in the body with the attachment as well. I see no way of doing this. If you code more than one "attach" option, it attaches both files. If I just have one "attach" block of code, with no disposition, it gives me the body the way I want it, but as soon as I try to attach the other file with disposition of "attachment", then both files show as attachments, with nothing in the body of the message. I'm thinking this can't be done using mime::lite. PLEASE HELP!

In reply to mime::lite problem by Anonymous Monk

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.