
Cure
User
Mar 7, 2000, 3:23 PM
Post #4 of 4
(337 views)
|
Hi Mime::tools is fairly recent so your webserver probobaly wont have that module.. Solution::just download the module(s) and install it on your server then change the path so then perl will know its there. Put this at the top of your script this will tell perl where to look BEGIN{ unshift @INC, "path/to/module"; }; Example:: #!/usr/bin/perl BEGIN{ unshift @INC, "path/to/module"; }; use CGI::Carp qw/fatalsToBrowser/; use Lite; $q = new CGI; print $q->header; $sendmail = '/usr/sbin/sendmail'; # Create a new multipart message: $msg = new MIME::Lite From =>'jondoe@net', To =>'johndoe@net', Cc =>'suedoe@net, 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 =>"hi yall"; attach $msg Type =>'image/gif', Path =>'amy.jpg', Encoding =>'base64', Filename =>'nice.jpg'; $msg->send; print "Hi there-> Check your Email!!"; Cure
|