本文整理汇总了PHP中mail::xsend方法的典型用法代码示例。如果您正苦于以下问题:PHP mail::xsend方法的具体用法?PHP mail::xsend怎么用?PHP mail::xsend使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mail
的用法示例。
在下文中一共展示了mail::xsend方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: xsend
public function xsend()
{
/*
|set appid and appkey
|--------------------------------------------------------------------------
*/
$mail_configs['appid'] = $this->appid;
$mail_configs['appkey'] = $this->appkey;
/*
|set sign_type,if is set
|--------------------------------------------------------------------------
*/
if ($this->sign_type != '') {
$mail_configs['sign_type'] = $this->sign_type;
}
/*
|init mail class
|--------------------------------------------------------------------------
*/
$mail = new mail($mail_configs);
/*
|build request and send email and return the result
|--------------------------------------------------------------------------
*/
return $mail->xsend($this->buildRequest());
}
示例2: xsend
public function xsend()
{
$mail_configs['appid'] = $this->appid;
$mail_configs['appkey'] = $this->appkey;
if ($this->sign_type != '') {
$mail_configs['sign_type'] = $this->sign_type;
}
$mail = new mail($mail_configs);
return $mail->xsend($this->buildRequest());
}