cvs: pearweb /public_html account-mail.php
| From: | Martin Jansen | Date: | Sun, 05 May 2002 07:59:40 +0000 |
| Subject: | cvs: pearweb /public_html account-mail.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3701@lists.php.net to get a copy of this message | ||
mj Sun May 5 03:59:40 2002 EDT
Modified files:
/pearweb/public_html account-mail.php
Log:
* Propagate name and email address in mail header.
Index: pearweb/public_html/account-mail.php
diff -u pearweb/public_html/account-mail.php:1.3 pearweb/public_html/account-mail.php:1.4
--- pearweb/public_html/account-mail.php:1.3 Sat May 4 14:09:36 2002
+++ pearweb/public_html/account-mail.php Sun May 5 03:59:38 2002
@@ -2,7 +2,7 @@
/**
* Send mail to PEAR contributor
*
- * $Id: account-mail.php,v 1.3 2002/05/04 18:09:36 mj Exp $
+ * $Id: account-mail.php,v 1.4 2002/05/05 07:59:38 mj Exp $
*/
/**
@@ -78,7 +78,7 @@
$text = "[This message has been brought to you via pear.php.net.]\n\n";
$text .= wordwrap($_POST['text'], 72);
- if (@mail($row['email'], $_POST['subject'], $text)) {
+ if (@mail($row['email'], $_POST['subject'], $text, 'From:
"' . $_POST['name'] . '" <' . $_POST['email'] .
'>')) {
echo '<p>Your message has been sent successfully.</p>';
} else {
PEAR::raiseError('An error occured while sending the message!');