Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> can't make sendmail work
Vit
Posted: Apr 10 2003, 08:32 PM
Quote Post





Group: Members
Posts: 1
Member No.: 230
Joined: 31-March 03



I am trying extremely simple script on arubatravelinfo.com/contact.html:

QUOTE
#!/usr/bin/perl -wT
use strict;
use CGI ':standard';
my ($message, $tomail, $frommail, $subjectmail);

$message = param('message');
$tomail = 'vinogradovus@yahoo.com';
$frommail = 'feedback@arubatravelinfo.com';
$subjectmail = 'from site';

open (MAIL, "|/usr/sbin/sendmail -t");

print MAIL "To: $tomail n From: $frommailn";
print MAIL "Subject: $subjectmailn";
print MAIL "$messagen";

close (MAIL);


But it doesn't work. I get an error log referring to line
QUOTE
open (MAIL, "|/usr/sbin/sendmail -t");


The error message is
QUOTE
Insecure $ENV{PATH} while running with -T switch at contact.cgi line 17.


And email is not sent. Can someone help?

Thanks
Vit


--------------------
Thanks,
Vit
www.fastautosales.com
www.arubatravelinfo.com
PMUsers Website
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll