Hello to all, i'd like to transform a file which contains text in a readable mail...
This text seems formatted as MIME type.
I'd open it, transform it and send it to someone in a readabel way (in this example it would be "Ciao sono assente!!!")...
I looked at MIME on CPAN and i found MIME::Lite...
Have someone tried MIME::Lite? Is it stable?
I thought to use something like this:
$msg = MIME::Lite->new( From =>$mittente, To =>$destinatario, Subject =>'Ferie', Type =>'image/gif', Encoding =>'base64', Path =>'hellonurse.gif' );
but...
* what have i to put in "Encoding" field?
* What have i to put in "Type" field?
Thanks,
Vittorio

This is the message in the file-->
Vittorio ZuccalĂ <vittorio@pippo.it> This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C4F187.7ACB2870 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ciao sono assente!!! ------=_NextPart_000_0012_01C4F187.7ACB2870 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2800.1479" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Ciao sono = assente!!!</FONT></DIV></BODY></HTML> ------=_NextPart_000_0012_01C4F187.7ACB2870----> Vittorio ZuccalĂ <vittorio@pippo.it> This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C4F187.7ACB2870 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ciao sono assente!!! ------=_NextPart_000_0012_01C4F187.7ACB2870 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2800.1479" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Ciao sono = assente!!!</FONT></DIV></BODY></HTML> ------=_NextPart_000_0012_01C4F187.7ACB2870--

In reply to Mime file 2 mime mail by nathanvit

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.