Hi,

I'm new to this and I'd like to know if anybody knows NTsendmail and how I
can add variable that
point to a textarea defined in a HTML file? I can run it now but it shows
the
example text defined in my pl script file. I'd like to replace that message
with the content of a textarea of a HTML file. And the mean time, is it
possible to redirect the user to another web page once the form is lauched.

Here is the script:

print "HTTP/1.0 200 OK\n";
print "Content-Type: text/html\n\n\n";


#! /usr/bin/perl -w
$|=1;
use NTsendmail;
$ENV{"NTsendmail"} = "192.168.100.4";
$ENV{"NTsendmail_debug"}=1;


#$ENV{"Message"} = $in{'Message'};


my $mail = new NTsendmail;

my $from = "Commis";
my $to = "[EMAIL PROTECTED]";
my $subject = "Message test from Commis";
#my $Message = "$Message";
my $Message = $Message;
$mail->send($from, $to, $subject, $Message);
exit 0;




Thanks in advance.

Steve Amirault



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to