Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Attaching Files to E-mail

by agoth (Chaplain)
on Sep 01, 2000 at 19:30 UTC ( [id://30736]=note: print w/replies, xml ) Need Help??


in reply to Attaching Files to E-mail

This will do the sending, ie v. easy, as is the file upload bit, as KM, use CGI.

sub send_with_attach { my $msg = new MIME::Lite From =>'', To =>'', Subject =>'Website File download', Type =>'multipart/mixed'; attach $msg Type =>'TEXT', Data =>'Downloaded files from website'; attach $msg Type =>'TEXT', Path =>'../conf/WWWCHI.TXT', Encoding =>'8bit', Filename =>'WWWCHI.TXT'; attach $msg Type =>'TEXT', Path =>'../conf/WWWCUS.TXT', Encoding =>'8bit', Filename =>'WWWCUS.TXT'; $msg->send; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://30736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found