V
Vit
Hi all,
I'm trying to debug my file.... it works (no error in the browser!!!),
but it is not doing what I'd like to...
#!/usr/bin/perl
&send_email;
sub send_email
{
$to = "vit\@domain.com";
open(MAIL, "|/usr/sbin/sendmail");
print MAIL "From: bob\@domain.com\n";
print MAIL "To: $to\n";
print MAIL "Subject: Web Enqiry\n\n";
close (MAIL);
}
print "Content-type: text/html\n\n";
print "Hello World2"
it doesn't give me an error, but I dont receive any mail....
any suggestion???
thanks
Vit
I'm trying to debug my file.... it works (no error in the browser!!!),
but it is not doing what I'd like to...
#!/usr/bin/perl
&send_email;
sub send_email
{
$to = "vit\@domain.com";
open(MAIL, "|/usr/sbin/sendmail");
print MAIL "From: bob\@domain.com\n";
print MAIL "To: $to\n";
print MAIL "Subject: Web Enqiry\n\n";
close (MAIL);
}
print "Content-type: text/html\n\n";
print "Hello World2"
it doesn't give me an error, but I dont receive any mail....
any suggestion???
thanks
Vit