NTsendmail
c/o Tksoft Inc.
Papinkatu 19
06100, Porvoo
Finland
Tel.+358 40 570-9900


NTsendmail is Highly Acclaimed UNIX Sendmail replacement for NT. NTsendmail is realeased under the GNU Public License. NTsendmail was designed to enable script writers to use their UNIX CGIs on Windows 95/98/NT/2000. NTsendmail also works on UNIX/Linux.

Current Version: 2.35.

PROBLEM: You have a UNIX CGI written in Perl whose method for sending mail is to open a pipe to sendmail and feed it a mail message.

E.g.:

#! /usr/bin/perl -w
$|=1;
$sendmail = "/usr/lib/sendmail";
open (MAIL, "| $sendmail -t -f \'tester\@1testdomain.com\'") || die ("Opening pipe failed."); 
print MAIL "From: tester\@1testdomain.com\r\n";
print MAIL "To: tester\@1testdomain.com\r\n";
print MAIL "Subject: Message from NTsendmail\r\n";
print MAIL "Hi there. This script sure works great on UNIX, doesn't it?\r\n";
close (MAIL);
exit 0;
You soon realize that NT doesn't have sendmail, or any other means of sending mail from a Perl script, unless you have installed an expensive third party sendmail emulator, and even then your scripts are likely to fail due to complex configuration problems.

SOLUTION:

  • Install NTsendmail.pm, the NTsendmail object module in your perl libraries directory. Typically "c:\\perl\lib\."
  • Modify your scripts to work with NTsendmail. NTsendmail syntax is as follows:
    $ENV{"NTsendmail"} = "your.mail.server";
    $mail = new NTsendmail;
    $mail->send($sender, $recipient, $subject, $message);
  • SECURITY, CONFORMITY: NTsendmail calls the local mailserver, or another mailserver which accepts mail from your machine. This is done to guarantee that all mail handling, caching, etc. is done according to the same rules as all your other mail. NTsendmail is tested with UNIX sendmail. Other mail servers might or might not work.

    This method of specifying a mailserver also allows you to run Perl CGIs on a server without a mailserver, using another machine's mailserver instead. By utilizing a mailserver behind a firewall, this feature can be used to complement your company's security policies for mail.

    NTsendmail is a true plug and play solution, instead of requiring complex configurations of its own.

    You plug it in and use it. That's all there is to it.

    REQUIREMENTS: You must have Perl installed on your NT system. (Tested on Perl 5. Perl 4 might work.) Requires the Socket module to be installed (standard with most Perl installations).

    GETTING NTSENDMAIL: NTsendmail is copyright 1997-2006 Troy Korjuslommi.

    NTsendmail is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License.

    The username and password to download NTsendmail are "GNU" "license". Please visit the downloads page to download it.

    SUPPORT:
    The NTsendmail Help Page contains some more info. Please always check there first.

    Tksoft, OY, Inc. is Linux consulting company. We sell support contracts for Linux. We do not plan to offer NT support, even for NTsendmail.

    Our staff members answer questions in their spare time so please be considerate.

    SUPPORTED MAIL SERVERS:
    NTsendmail requires a mail server to exist somewhere on the network. Please let us know about the email server which you use, and whether or not NTsendmail works for you. If you are the first to report a server, we will list you here, along with your company's URL.

    (List started: Thu Sep 9 11:09:22 PDT 1999)

    Mailserver Name
    Works (y/n)
    URL of the reporting company (optional). Date
    MidPoint
    Y

    Dec 16 2002

    LEGAL:
    Copyright 1997-2006 Troy Korjuslommi.
    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

    This document and NTsendmail are
    Copyright 1997-2006 Troy Korjuslommi.