本文整理匯總了PHP中Zend_Queue::deleteMessage方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Queue::deleteMessage方法的具體用法?PHP Zend_Queue::deleteMessage怎麽用?PHP Zend_Queue::deleteMessage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zend_Queue
的用法示例。
在下文中一共展示了Zend_Queue::deleteMessage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: send_webmail
//send_webmail($to_email,$subject,$mailcontent,$callback);
if (!empty($msg)) {
$flag = 0;
//failed
$result = "發送失敗" . $msg;
$successrate = 0;
} else {
$flag = 1;
//success
$result = "發送成功";
$successrate = 1;
}
//保存單條郵件記錄
saveMailLog($sjid, $maillogsid, $receiver, $to_email, $subject, $mailcontent, $flag, $result, $successrate, $userid);
//刪除該條Message
$queue->deleteMessage($message);
//暫停幾秒
if (empty($interval)) {
$interval = 5;
}
sleep($interval);
}
function send_webmail($to_email, $receiver, $from_name, $from_email, $subject, $contents, $maillogsid, $userid)
{
global $adb;
// 實例化mail
//if(empty($from_email)){
$query = "select * from ec_systems where server_type='email' and smownerid='" . $userid . "' order by id";
// }else{
// $query = "select * from ec_systems where server_type='email' and from_email = '".$from_email."' ";
// }