脚本宝典收集整理的这篇文章主要介绍了php – Codeigniter从HTML电子邮件中删除字符,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
亲爱的Noor Shirzai这封电子邮件告诉您,您的密码已被重置.
贝娄是你的新密码:
您的用户名是:mohib
你的新Pas =单词是:IOODiGhcyyrL
请更改您的< = trong>登录系统后立即输入新密码,以避免出现任何安全问题.
注意:当我使用Pure PHP邮件功能发送它时,它工作正常.
我将非常感谢我得到的任何帮助.
谢谢
if (! function_exists('send_password')) { function send_password($user_info,$password) { $CI =& get_instance(); $username = $user_info['username']; $name = $user_info['Firstname'].' '.$user_info['lastname']; $email = $user_info['email']; $subject = 'Your New Password : Noor CMS |'.$CI->config->ITem('site_name'); //email body $message = ''; $message .= '<!DOCTYPE htML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'; $message .= '<html XMlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'; $message .= '<@R_502_1979@ content="text/html; charset=utf-8" http-equiv="Content-type">'; $message .= '<head>'; $message .= '<title> Your New Password : Noor CMS | '.$CI->config->item('site_name').' </title>'; $message .= '</head>'; $message .= '<body>'; $message .= 'Dear '.trim($name); $message .= 'This Email was sent to you in order to inform you that your <strong>Password</strong> has been reset.<br/>'; $message .= 'Bellow is your <strong> New Password :</strong><br/>'; $message .= 'Your <strong>Username </strong>is : <strong> '.trim($username).'</strong><br/>'; $message .= 'Your <strong>New Password </strong>is : <strong> '.trim($password).'</strong><br/>'; $message .= 'Please change your <strong>New Password</strong> as soon as you login to the system in order to avoid any security issues.<br/>'; $message .= '</body></html>'; //PRepare email and send $CI->email->From($CI->config->item('admin_email'),$CI->config->item('admin_name')); $CI->email->to($email); $CI->email->subject($subject); $CI->email->message($message); if ($CI->email->send()) { return TRUE; } return FALSE; } }
$config['useragent'] = 'NoorCMS'; $config['protocol'] = 'mail'; $config['mailpath'] = '/usr/sbin/sendmail'; $config['smtp_host'] = ''; $config['smtp_user'] = ''; $config['smtp_pass'] = ''; $config['smtp_port'] = 25; $config['smtp_timeout'] = 10; $config['wordwrap'] = FALSE; $config['wrapchars'] = 100; $config['mailtype'] = 'html'; $config['send_multipart'] = FALSE; $config['charset'] = 'utf-8'; $config['validate'] = FALSE; $config['priority'] = 1; $config['crlf'] = '\n'; $config['newline'] = '\n'; $config['bcc_batch_mode'] = FALSE; $config['bcc_batch_size'] = 200;
以上是脚本宝典为你收集整理的php – Codeigniter从HTML电子邮件中删除字符全部内容,希望文章能够帮你解决php – Codeigniter从HTML电子邮件中删除字符所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。