Update of /cvsroot/openfirst/guestbook
In directory sc8-pr-cvs1:/tmp/cvs-serv14016
Modified Files:
signthanks.php
Log Message:
Modify guestbook to use multipart mail message if functionality is available (completely untested).
Index: signthanks.php
===================================================================
RCS file: /cvsroot/openfirst/guestbook/signthanks.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** signthanks.php 24 Jul 2003 01:04:17 -0000 1.7
--- signthanks.php 15 Aug 2003 18:53:39 -0000 1.8
***************
*** 59,66 ****
$result = mysql_db_query("$sqldatabase",$query);
! mail("$mailnotify", "Guestbook Posting","Someone has posted a message in your guest book.
deletecode=$deletecode
! Guest: " . $_POST["guest"] . "
Now: " . date("D M j G:i:s T Y") . "
E-mail: " . $_POST["email"] . "
--- 59,66 ----
$result = mysql_db_query("$sqldatabase",$query);
! $message = "Someone has posted a message in your guestbook.
deletecode=$deletecode
! Guest: ". $_POST["guest"] . "
Now: " . date("D M j G:i:s T Y") . "
E-mail: " . $_POST["email"] . "
***************
*** 74,96 ****
Delete Code: $deletecode
! " . $_POST["comment"] . "",
! "From: $mailfrom\r\n"
! ."Reply-To: " . $_POST["email"] . "\r\n"
! );
! mail("" . $_POST["email"] . "", "Your Guestbook Posting", "Dear Guest,
! Thank you for visiting our site and signing our guestbook. We hope you enjoyed it!
We have sent you this E-mail out of thanks and also to give you some information which
you may later need. If in your guestbook posting, you make a mistake that you didn't inntially
realize, or just want to delete your post, you can do so by going to the following address:
!
http://" . $_SERVER["HTTP_HOST"] . "$basepath/guestbook/deleteentry.php?email=" . $_POST["email"] . "&deletecode=$deletecode
!
Thank you once again, and be sure to check in often as we are constantly making updates
and adding new features.
! Web Site Administration", "From: $mailfrom\r\n");
?>
--- 74,108 ----
Delete Code: $deletecode
! " . $_POST["comment"];
! $headers = "From: $mailfrom\r\n"
! ."Reply-To: " . $_POST["email"] . "\r\n";
! if (function_exists("multipartmail")) {
! multipartmail("$mailnotify", "Guestbook Posting", $message, $headers);
! } else {
! mail("$mailnotify", "Guestbook Posting", $message, $headers);
! }
+ $message = "Dear Guest,
+
+ Thank you for visiting our site and signing our guestbook. We hope you enjoyed it!
+
We have sent you this E-mail out of thanks and also to give you some information which
you may later need. If in your guestbook posting, you make a mistake that you didn't inntially
realize, or just want to delete your post, you can do so by going to the following address:
!
http://" . $_SERVER["HTTP_HOST"] . "$basepath/guestbook/deleteentry.php?email=" . $_POST["email"] . "&deletecode=$deletecode
!
Thank you once again, and be sure to check in often as we are constantly making updates
and adding new features.
+
+ Web Site Administration";
! if (function_exists("multipartmail")) {
! multipartmail($_POST["email"], "Your Guestbook Posting", $message);
! } else {
! mail($_POST["email"], "Your Guestbook Posting", $message);
! }
?>
|