0 ) { $page['formname'] = $name; $page['formemail'] = $mail; $page['formmessage'] = $message; start_html_output(); require('view/chat_leavemsg.php'); exit; } $subject = getstring2_("leavemail.subject", array($name), $webim_messages_encoding); $body = getstring2_("leavemail.body", array($name,$mail,$message), $webim_messages_encoding); $headers = 'From: '.$webim_from_email."\r\n" . 'Reply-To: '.$mail."\r\n" . 'X-Mailer: PHP/'.phpversion(); mail($webim_messages_mail,$subject,wordwrap($body,70),$headers); start_html_output(); require('view/chat_leavemsgsent.php'); ?>