blat

P

paolo

is there anyone who has used blat? I have problem when sending a mail
from a cgi-script. Any errors arent displayed on the html-page, but
the mail is not sent. the code looks like this:
#!/usr/local/bin/perl
print "Content-Type: text/plain\n\n";
$from = '(e-mail address removed)';
$to = '(e-mail address removed)';


$subject = 'subject';
$message = 'testmail';

open OP,">cgi-bin/lettera";
print OP "MIME-Version: 1.0\n";
print OP "Content-Type: text/plain; charset=ISO-8859-1\n";
print OP "Content-Transfer-Encoding: 8bit\n";
print OP "To: ",$to,"\n";
if ($from) {print OP "From: ",$from,"\n";}
if ($subject) {print OP "Subject: ",$subject,"\n";}
print OP "\n";
print OP $message;
close OP;
system('g:/blat/blat.exe <cgi-bin/lettera');
print "helo?";


thanks in advance

paolo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,010
Latest member
MerrillEic

Latest Threads

Top