Hi...I took this code from a book and I thought it would work but instead it gives me an error about "No recipient addresses found in header "
Here's the code:
PRINT MAIL "To: test\@test\.com\n";
PRINT MAIL "From: $email\n";
PRINT MAIL "Subject: Order $order\n\n";
PRINT MAIL "content here\n";
CLOSE(MAIL);
Anybody have ideas?
Thanks!
Here's the code:
Code:
open (MAIL, "|/usr/bin/sendmail -t"); PRINT MAIL "To: test\@test\.com\n";
PRINT MAIL "From: $email\n";
PRINT MAIL "Subject: Order $order\n\n";
PRINT MAIL "content here\n";
CLOSE(MAIL);
Anybody have ideas?
Thanks!