I found a perl module: Sender.pm that uses SMTP and is
simple to use (we don't have sendmail on our NT servers).
I've included it here.
I put it in Perl\lib\Mail and use it like so:
use Mail::Sender;
$msg="This is a test of the mailing";
$recip = "you\@there.net";
$source = "me\@here.net";
ref ($sender = new Mail::Sender({from => $source,smtp
=> 'mailserv.xxx.xxx'})) or die "$Mail::Sender::Error\n";
(ref ($sender->MailMsg({to =>$recip, subject => 'this is a test',
msg => "Heres the message: $msg"}))
and print "Mail sent OK."
)
or die "$Mail::Sender::Error\n";
OR you can use:
use Mail::Sender;
ref ($sender = new Mail::Sender({from => '[EMAIL PROTECTED]',smtp
=> 'mailsrv.xxx.xxx'})) or die "$Mail::Sender::Error\n";
(ref ($sender->MailMsg({to =>'[EMAIL PROTECTED],[EMAIL PROTECTED]',
subject => 'this is a test',
msg => "Type your message here"}))
and print "Mail sent OK."
)
or die "$Mail::Sender::Error\n";
of course the mailsrv.xxx.xxx is your mailserver.
I hope this is what your looking for.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, October 20, 2000 8:03 AM
To: [EMAIL PROTECTED]
Subject: Newbie : perl form with exchange mail ?
Hi All,
Thanks to this list i've found the way to install Perl + some additionnal
modules (with NO internet connection see at http://here.at/perl tutorials,
ppm.
I've NT4 with sp5 and IIS4. ActiveState perl 5.6.
I would like to install a form script that would be able to send a mail to
someone. We are using Exchange server and Outlook98 on client side.
Does such a script exist and what module should i add ?
Patrick EGLOFF
Chef du SDTI Ajaccio
Tel : 0 495 111 020
Fax : 0 495 111 028
Email: [EMAIL PROTECTED]
Sender.pm