新浪云sae 邮件服务 quicksend()
<?php header("Content-Type: text/html;charset=utf-8"); $mail = new SaeMail(); $form_Content=" 你好,你的订单已经发货,请注意查收,顺风单号:3143343344"; //$mail->setAttach(array("my_photo" => "照片的二进制数据")); $ret = $mail->quickSend("402151718@qq.com", "新浪云服务邮箱发送测试", "正文如下:".$form_Content, "the send mail", "your mail password"); //发送失败时输出错误码和错误信息 if ($ret === false) { //var_dump($mail->errno(), $mail->errmsg()); $resultStr = "唉,失败了,再努力".$mail->errno().$mail->errmsg(); }else{ $resultStr = "兄弟,成功了"; } echo $ret; echo $resultStr; ?>
创建对象,调用对象,返回调用结果值
本文来自博客园,作者:忙碌在路上,转载请注明原文链接:https://www.cnblogs.com/netsa/p/5654814.html