aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_pm.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-07-06 18:48:33 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-07-06 18:48:33 +0000
commit1b320bbb006a685d33032a6d1a39de44b4e858a7 (patch)
tree79959cc9ae9d93be18ecf5b56eb991b5511ec8bd /phpBB/includes/ucp/ucp_pm.php
parentf31b471ee12c96eb1a61484c684202f4d3a8b8bd (diff)
downloadforums-1b320bbb006a685d33032a6d1a39de44b4e858a7.tar
forums-1b320bbb006a685d33032a6d1a39de44b4e858a7.tar.gz
forums-1b320bbb006a685d33032a6d1a39de44b4e858a7.tar.bz2
forums-1b320bbb006a685d33032a6d1a39de44b4e858a7.tar.xz
forums-1b320bbb006a685d33032a6d1a39de44b4e858a7.zip
merged log tables, added new log_type (critical).
changed email class a little bit. bug fixed the queue a little bit. git-svn-id: file:///svn/phpbb/trunk@4210 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm.php')
-rw-r--r--phpBB/includes/ucp/ucp_pm.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/phpBB/includes/ucp/ucp_pm.php b/phpBB/includes/ucp/ucp_pm.php
index 6716147d6c..afe2c68489 100644
--- a/phpBB/includes/ucp/ucp_pm.php
+++ b/phpBB/includes/ucp/ucp_pm.php
@@ -1052,8 +1052,6 @@ class ucp_pm extends ucp
if ($to_userdata['user_notify_pm'] && !empty($to_userdata['user_email']) && $to_userdata['user_active'])
{
- $email_headers = 'From: ' . $config['board_email'] . "\nReturn-Path: " . $config['board_email'] . "\r\n";
-
$script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($config['script_path']));
$script_name = ($script_name != '') ? $script_name . '/privmsg.'.$phpEx : 'privmsg.'.$phpEx;
$server_name = trim($config['server_name']);
@@ -1061,11 +1059,11 @@ class ucp_pm extends ucp
$server_port = ($config['server_port'] <> 80) ? ':' . trim($config['server_port']) . '/' : '/';
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
- $emailer = new emailer($config['smtp_delivery']);
+ $emailer = new emailer();
$emailer->use_template('privmsg_notify', $to_userdata['user_lang']);
- $emailer->extra_headers($email_headers);
- $emailer->email_address($to_userdata['user_email']);
+ $emailer->from($config['board_email']);
+ $emailer->to($to_userdata['user_email']);
$emailer->set_subject(); //$lang['Notification_subject']
$emailer->assign_vars(array(