//邮件发送 $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(); //发送
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。