wuzhicms发送邮件
//邮件发送
$config = get_cache('sendmail');
$siteconfigs = get_cache('siteconfigs');
$password = decode($config['password']);
//load_function('sendmail');
$t = date('YmdHis');
$subject = '有新的订单';
$message = $formdata['title']."电话:".$formdata['mobile'].date('Y-m-d H:i:s',SYS_TIME);
$message .= "请尽快审批!";
$mail = load_class('sendmail');
$mail->setServer($config['smtp_server'], $config['smtp_user'], $password); //设置smtp服务器,普通连接方式
$mail->setFrom($config['send_email']); //设置发件人
$mail->setReceiver('sss@ss.com'); //设置收件人,多个收件人,调用多次
$mail->setMail($subject, $message); //设置邮件主题、内容
$mail->sendMail(); //发送
//邮件发送
$config = get_cache('sendmail');
$siteconfigs = get_cache('siteconfigs');
$password = decode($config['password']);
//load_function('sendmail');
$t = date('YmdHis');
$subject = '有新的订单';
$message = $formdata['title']."电话:".$formdata['mobile'].date('Y-m-d H:i:s',SYS_TIME);
$message .= "请尽快审批!";
$mail = load_class('sendmail');
$mail->setServer($config['smtp_server'], $config['smtp_user'], $password); //设置smtp服务器,普通连接方式
$mail->setFrom($config['send_email']); //设置发件人
$mail->setReceiver('sss@ss.com'); //设置收件人,多个收件人,调用多次
$mail->setMail($subject, $message); //设置邮件主题、内容
$mail->sendMail(); //发送