|
From: Jirka P. <fi...@us...> - 2002-05-19 16:59:19
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv32165/phpbt
Modified Files:
include.php newaccount.php
Log Message:
Wrapped to qp_mail.
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -r1.117 -r1.118
--- include.php 18 May 2002 02:59:32 -0000 1.117
+++ include.php 19 May 2002 16:59:16 -0000 1.118
@@ -172,8 +172,8 @@
$mpassword = md5($password);
$db->query("update ".TBL_AUTH_USER." set password = '$mpassword' where login = '$username'");
}
- mail($email, $STRING['newacctsubject'], sprintf($STRING['newacctmessage'],
- $password), sprintf("From: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n",ADMIN_EMAIL, $STRING['lang_charset']));
+ qp_mail($email, $STRING['newacctsubject'], sprintf($STRING['newacctmessage'], $password),
+ sprintf("From: %s",ADMIN_EMAIL));
$t->assign('loginerror',
'<div class="result">Your password has been emailed to you</div>');
$emailsuccess = true;
Index: newaccount.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/newaccount.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- newaccount.php 18 May 2002 02:59:32 -0000 1.31
+++ newaccount.php 19 May 2002 16:59:16 -0000 1.32
@@ -70,8 +70,8 @@
" where group_name = 'User'");
$db->query("insert into ".TBL_USER_PREF." (user_id) values ($user_id)");
- mail($_pv['email'], $STRING['newacctsubject'], sprintf($STRING['newacctmessage'],
- $password), sprintf("From: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n",ADMIN_EMAIL, $STRING['lang_charset']));
+ qp_mail($_pv['email'], $STRING['newacctsubject'], sprintf($STRING['newacctmessage'], $password),
+ sprintf("From: %s",ADMIN_EMAIL));
$t->wrap('newaccountsuccess.html', 'accountcreated');
}
|