Also I've tried doing msg => "text" and msg => "html" ,respectively,
Without using variables that contain the messages, still blank.
Withh the above I would expect the email to just say
text
And when they opened up the html attachment it would just say
Html
 
The ultimate goal is to send a person a note along with an html attachment.

Any ideas as to why the message and the html attachment are blank would be extremely 
appreciated.

Thanks

Dan

> 
> 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:
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to