标签: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(); //发送
标签:wuzhicms
原文地址:http://wuzhicms.blog.51cto.com/2850744/1782055