Hi, i ve a guestbook...and i would like that the man ho leaves a message gets a mail in his mail box..i ve donne something but it does not work...i ve already done that I get a mail when a message is posst ...but I think the two things are confused !!??
her is the code !!! actually simple but....
the problem is in the second part caus without it it works !!! duhhh)
# Option Mail
if ($mail eq '1') {
open (MAIL, "|$mailprog $mailto") || die "Can't open $mailprog!\n";
print MAIL "Reply-to: $FORM{'email'} ($FORM{'name'})\n";
print MAIL "From: $FORM{'email'} ($FORM{'name'})\n";
print MAIL "Subject: Entry to YOUR Guestbook\n\n";
print MAIL "$FORM{'name'} <$FORM{'email'}> has made an entry to your guestbook!\n";
print MAIL "Comments :\n $FORM{'comments'}\n";
print MAIL " - $date\n";
close (MAIL);
}
if ($mail eq '1') {
open (MAIL2, "|$mailprog $FORM{'email'}") || die "Can't open $mailprog!\n";
print MAIL2 "Reply-to: mail@mailxxxx\n";
print MAIL2 "From: mail@mailxxxx\n";
print MAIL2 "Subject: XXXXXXX - Guestbook\n\n";
print MAIL2 "$FORM{'name'},\nThank you for visiting our website and leaving a message...\n;
print MAIL2 " - $date\n";
close (MAIL2);
}
I dont think I can do 2 "if" but how should I do it then)..
hope you can help me...thanks


)
Reply With Quote
Bookmarks