in reply to Zip up and email
or to email you can use Mail::Senderuse Net::FTP; `/usr/bin/zip -r zipfile.zip /directory/to/zip/`; #-r means recurse my $ftp = Net::FTP->new("some.host.name", Debug => 0); $ftp->login("anonymous",'me@here.there'); $ftp->cwd("/incoming"); $ftp->put("zipfile.zip"); $ftp->quit;
I believe both of these modules will work in windows as well... but the zip command would be different...use Mail::Sender; `/usr/bin/zip -r zipfile.zip /directory/to/zip/`; #-r means recurse my $sender = new Mail::Sender {smtp => 'mail.yourdomain.com', from => 'your@address.com'}; $sender->MailFile({to => 'some@address.com', subject => 'Here is the file', msg => "your message here.", file => 'zipfile.zip'});
- Ant
- Some of my best work - Fish Dinner
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Zip up and email
by Anonymous Monk on Aug 10, 2001 at 23:13 UTC | |
by suaveant (Parson) on Aug 10, 2001 at 23:28 UTC |