Llew_Llaw_Gyffes has asked for the wisdom of the Perl Monks concerning the following question:

O learned brethren,

I am familiar with the use of Mail::Send to generate and send an email message from Perl.  Is there a recommended simple means by which I may add an appropriately MIME-encoded attachment to a message created with Mail::Send?  I have found MIME::Entity, but I haven't yet been able to make the two work in combination.

  • Comment on Attaching files to a Mail::Send message

Replies are listed 'Best First'.
Re: Attaching files to a Mail::Send message
by GrandFather (Saint) on Jul 23, 2005 at 08:33 UTC

    Use MIME::Lite. Very easy to use and good documentation.


    Perl is Huffman encoded by design.
Re: Attaching files to a Mail::Send message
by polettix (Vicar) on Jul 23, 2005 at 13:34 UTC
    That is exactly why I started using Mail::Sender, which I found both simple and useful.

    Flavio
    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Don't fool yourself.
      Mail::Sender looks like exactly what I need. Thank you.