I'm getting this error from Mial::Sender and am not sure why. 
Can't locate object method "Attach" via package "Mail::Sender" 
 
What should I check/did I miss/am I doign wrong/etc???
 
Thanks
 
Dan 
+++++++++++++++++++
 
Below is the perl and the output from the script :
 
__SCRIPT__
         my $contract_html = set_contract_html(); 
 

        print "Sending contract... <br> \n";
 
        use Mail::Sender;
        eval {
        
                $sender = new Mail::Sender {smtp => "$smtp_serv", from => "$from"};
                $sender->OpenMultipart({subject => "$subject", to => "$email_to"});
                $sender->Body({ctype => 'text/plain', msg => $text});
                $sender->Part({ctype => 'text/html', disposition => 'attachment',
                        msg => $contract_html
                });
                $sender->Attach({
                        description => 'Infiniplex Logo',
                        ctype => 'image/gif',
                        encoding => 'base64', 
                        disposition => 'attachment; filename="infinlogo.gif"; 
type="Gif Image"',
                        file => 'infinlogo.gif'
                });
                $sender->Close();
         };
 
        if($@) { print "... $@ :: <br>Error sending mail: $Mail::Sender::Error <P> 
\n"; }
        else {  print "... Mail sent ok! <P> \n"; }
 
__SCRIPT OUTPUT__
 
Sending contract... 
... Can't locate object method "Attach" via package "Mail::Sender" at 
/usr/local/www/data/employee/contract.cgi line 114, chunk 5. :: 
Error sending mail:

Reply via email to