Re: [OT] Re: sendMail in cgi program

2000-06-13 Thread Ian Kallen
Well, you _can _ do this $var=<<"END"; This is my variable's multiline text, complete tith tabs\t\t and extra newline\n\n, etc END four spaces in the opening and closing quote. I usually use qq{ } depending on how much I care about whitespace formatting.

[OT] Re: sendMail in cgi program

2000-06-12 Thread Paul
I know you've received other responses, but I'm doing a good bit of this lately. > sub sendEmail { > open (Sendmail, "|/usr/lib/sendmail -oi -t ") > or die "Can't fork for sendmail: $!\n"; > print Sendmail <<"EOF"; > From: Bugs > To: amy > Subject

RE: sendMail in cgi program

2000-06-12 Thread Jerrad Pierce
. | _| | \|| _.-~-._.-~-._.-~-._@" _|\_|___|___| > -Original Message- > From: amy [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 12, 2000 15:55 > To: [EMAIL PROTECTED] > Subject: sendMail in cgi program > > > if I run the same procedure on a separate file, > email works, once I put the proc in the cgi &

sendMail in cgi program

2000-06-12 Thread amy
if I run the same procedure on a separate file, email works, once I put the proc in the cgi file, I got the following error. in error_log : Can't find string terminator "EOF" anywhere before EOF at /usr/local/bin/apache/cgi-bin/lib.pl line 484. sub sendEmail { open (Sendmail, "|/usr/lib