use new settings db to send email

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@118 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2008-09-29 23:10:03 +00:00
parent 0ebad2dda7
commit 96519f6158

View File

@ -44,10 +44,14 @@ if( count($errors) > 0 ) {
}
$subject = getstring2_("leavemail.subject", array($visitor_name), $webim_messages_locale);
$body = getstring2_("leavemail.body", array($visitor_name,$email,$message), $webim_messages_locale);
$body = getstring2_("leavemail.body", array($visitor_name,$email,$message), $webim_messages_locale);
webim_mail($webim_messages_mail, $email, $subject, $body);
loadsettings();
$inbox_mail = $settings['email'];
if($inbox_mail) {
webim_mail($inbox_mail, $email, $subject, $body);
}
start_html_output();
require('view/chat_leavemsgsent.php');