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

Is there any perl modules that allow you to send attachments along with a reply e-mail that a user has requested through a form? thanks Moshambo

Replies are listed 'Best First'.
Re: E-Mail Attachments
by lhoward (Vicar) on Jul 07, 2000 at 17:51 UTC
    And here's an example of the use of MIME::Lite:
    use MIME::Lite $msg = new MIME::Lite From =>'me@myhost.com', To =>'you@yourhost.com', Cc =>'some@other.com, some@more.com', Subject =>'A message with 2 parts...', Type =>'multipart/mixed'; # Add parts (each "attach" has same arguments as "new"): attach $msg Type =>'TEXT', Data =>"Here's the GIF file you wanted"; attach $msg Type =>'image/gif', Path =>'aaa000123.gif', Filename =>'logo.gif'; $msg->send;
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: E-Mail Attachments
by davorg (Chancellor) on Jul 07, 2000 at 17:48 UTC