Hello everybody, Getting the error: Can't locate object method "new" via package "Net::SMTP::MultiPart"
Surprised I am getting the error and can't figure out why. I have all the module requirements and the module installed correctly (see EOM, even tried reinstalling it). The code below is the exact code from the sample included EXCEPT I changed out pergunent info (hosts, email address, etc etc). Any ideas on what might be causing this? If no, any pointers on how to send email attachments (google not much help ... don't really want to RTFM (eg Multipurpose Internet Mail Extensions RFC's (all 5 of them)... don't really need THAT indepth understanding of it, nor even sure I would understand it all :) ... btw..this is not via CGI and httpd .. this is a local program the emails on completion. Cheers, Peter # START mail.pl #! perl use strict; use warnings; use Net::SMTP::MultiPart; my $smtp = Net::SMTP::MultiPart->new('bondbhs2.areur.army.mil'); $smtp->Header(To => "Peter.Thoenen\@bondsteel2.areur.army.mil", Subj => "Multipart Mail Demo", From => "Peter.Thoenen\@bondsteel2.areur.army.mil"); $smtp->Text("This is the first text part of the message"); $smtp->FileAttach("e:/cdr/mail.pl"); $smtp->End(); # TO VERIFY INSTALL ppm> install 1 Package 1: ==================== Install 'Net-SMTP-Multipart' version 1.4 in ActivePerl 5.6.1.633. ==================== Downloaded 3857 bytes. Extracting 6/6: blib/arch/auto/Net/SMTP/Multipart/.exists Installing E:\Perl\html\site\lib\Net\SMTP\Multipart.html Installing E:\Perl\site\lib\Net\SMTP\Multipart.pm Writing E:\Perl\site\lib\auto\Net\SMTP\Multipart\.packlist Successfully installed Net-SMTP-Multipart version 1.4 in ActivePerl 5.6.1.633. ################################## Peter Thoenen - Systems Programmer Commercial Communications Camp Bondsteel, Kosovo ################################## _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs