Rob Richardson wrote:
I cant tell U why it doesnt work , I can help u debugGreetings!I have a script that uses sendmail. It used to work. I didn't touch it. It doesn't work now. The log file tells me that there are no recipient addresses. It looks to me like they are. Here's the code: # Send a confirming E-mail. open (SENDMAIL, "|/usr/lib/sendmail -oi -t") or die "Cant fork sendmail: $!\n"; print SENDMAIL <<"ENDOFMAIL"; From: therobs\@n2net.net To: interrobang\@yahoo.com Subject: Volunteer Scheduling - $month $day, $year Contact: $usrvals[2] $usrvals[3] E-Mail: $usrvals[5] IP Address: $ENV{'REMOTE_ADDR'} Telephone: $usrvals[4] Volunteer Date: $month $day, $year Train: $train Position: $position !!Note: Generated by CVSR's online scheduling system!! ENDOFMAIL close(SENDMAIL); # open (SENDMAIL, "|/usr/lib/sendmail -oi -t") or die "Cant fork sendmail: $!\n"; # print SENDMAIL <<"ENDOFMAIL"; # From: $usrvals[5] # To: mis\@cvsr.com # Subject: Volunteer Scheduling - $month $day, $year # # Contact: $usrvals[2] $usrvals[3] # E-Mail: $usrvals[5] # IP Address: $ENV{'REMOTE_ADDR'} # Telephone: $usrvals[4] # Volunteer Date: $month $day, $year # Train: $train # Position: $position # !!Note: Generated by CVSR's online scheduling system!! #ENDOFMAIL # close(SENDMAIL); The commented-out code once worked. Can anyone tell me why mine isn't? Thanks very much!
Do you run this on cammand line ?
If yes run the sendmail with a -v ( verbose )
..... "|sendmail -v -oi -t ")
If no then You must be able to debug either by printing what you are printing also to a fil
If you have root acces to your server you can try
stop sendmail
start sendmail with
sendmail -bd -X /tmp/somelogfile
and run your program again
then You can see in the 'somelogfile' where the mails were going
Bye
Ram
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]