Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use of SendMail on NT4

Status
Not open for further replies.

xjc539w

IS-IT--Management
Aug 5, 2003
11
0
0
US
Probably a simple error, but it is baffling to me. I've successfully used this code (Thankyou) on other machines (XP & W2K), but as I try to execute from a NT4 box I receive the following:


D:\perl\lib\Mail>perl -v

This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2001, Larry Wall

Binary build 630 provided by ActiveState Tool Corp. Built 20:29:41 Oct 31 2001


Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at the Perl Home Page.


D:\perl\lib\Mail>d:\perl\bin\perl d:\usr\Production\TestMail.plx
Can't locate object method "new" via package "SendMail" (perhaps you forgot to
oad "SendMail"?) at d:\usr\Production\TestMail.plx line 26.
 
You'll have to be a little more specific, can you post the configuration details, as well as the calling stub

Regards
--Paul
 
The specifics: An NT workstation, with ActivePerl 5.6.* installed. The SendMail.pm manually installed to the Perl\lib folder

The TestMail.plx being executed has been tailored to work in my host environment.

use Env;
use Sendmail;

#
# Create the object without any arguments,
# i.e. localhost is the default SMTP server.
#
$sm = new SendMail(xxxxxx);

where xxxxx = the ip address of the mail server
 
use Sendmail;
$sm= new SendMail(xxxxx)

Mismatch of M & m

HTH
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top