[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Sendmail Problem



-----Original Message-----
From: ISEE Multimedia 
Sent: Thursday, September 05, 2002 7:52 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] Sendmail Problem


Hi All,

A customer used to use this script now he says it wont work, sendmail is
running and I have restarted it to make sure, can anyone see anything wrong
with the script? or have any other ideas.

 open(REPLY, "|/usr/sbin/sendmail -t");
 print REPLY "To: test\@energizze.co.uk \n";
 print REPLY "From: automail\@energizze.co.uk \n";
 print REPLY "Subject: Automail \n";
 print REPLY "TEST\n";
 close(REPLY);
------------------

Yes, I see something wrong. You need an extra line feed to separate your
last mail header line, i.e. the Subject: header from the beginning of the
body of your message. One way to do this is to change the code that printes
the Subject: header line to :
 
print REPLY "Subject: Automail \n\n";