PDA

View Full Version : add sendmail to Guestbook solved


helper
03-11-2006, 05:41 PM
Just wanted to thank Fishmonger for all his help
I finally solved the problem see post Add sendmail to guestbook
with this

$from="some\@mail.com";
$to="me\@mail.com";
$subject="Guestbook";
$sendmailpath="/usr/sbin/sendmail";

open (SENDMAIL, "| $sendmailpath -t");
print SENDMAIL "Subject: $subject\n";
print SENDMAIL "From: $from";
print SENDMAIL "To: $to";
print SENDMAIL " test e-mail.";

close (SENDMAIL);

tried it at a few different places in the script and got it to work
Thank you for your patience Fishmonger.

I then added in email comments etc

and I start to understand how it works

many thanks again


Doug