Home > php教程 > php手册 > Sina cloud sae email service quicksend()

Sina cloud sae email service quicksend()

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-09 09:08:01
Original
1488 people have browsed it

<?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;

?><br /><br />
Copy after login

Create an object, call the object, and return the call result value

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template