本文整理匯總了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());
}