當前位置: 首頁>>代碼示例>>PHP>>正文


PHP mail::text方法代碼示例

本文整理匯總了PHP中mail::text方法的典型用法代碼示例。如果您正苦於以下問題:PHP mail::text方法的具體用法?PHP mail::text怎麽用?PHP mail::text使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在mail的用法示例。


在下文中一共展示了mail::text方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: execute

 public function execute($function)
 {
     if (is_callable(array($this, $function))) {
         try {
             $this->{$function}();
         } catch (Error_Cron $e) {
             $mail = new mail(def::notify('mail'));
             $mail->text(serialize($e))->send();
         }
     }
 }
開發者ID:4otaku,項目名稱:4otaku,代碼行數:11,代碼來源:abstract.php

示例2: mail

 function shutdown_handler()
 {
     $error = error_get_last();
     if ($error && ($error['type'] == E_ERROR || $error['type'] == E_PARSE || $error['type'] == E_COMPILE_ERROR)) {
         if (strpos($error['message'], 'Allowed memory size') === 0) {
             ob_end_clean();
             $mail = new mail(def::notify('mail'));
             $mail->text(serialize(query::$url) . serialize($error))->send();
         } else {
             ob_end_clean();
             $mail = new mail(def::notify('mail'));
             $mail->text(serialize(query::$url) . serialize($error))->send();
         }
     }
 }
開發者ID:4otaku,項目名稱:4otaku,代碼行數:15,代碼來源:functions.php

示例3: move

	public function move () {
		$id = query::$post['id'];
		$to = query::$post['to'];

		if (!is_numeric($id) || !is_numeric($to)) {
			return;
		}

		if (query::$cookie != def::get('board', 'moderator')) {
			return;
		}

		Database::update('board', array(
			'thread' => $to,
			'sortdate' => ceil(microtime(true)*1000)
		), $id);

		$mail = new mail(def::notify('mail'));
		$mail->text("Moved board №$id, to " . $to)->send();
	}
開發者ID:4otaku,項目名稱:4otaku,代碼行數:20,代碼來源:board.php

示例4: clear

 function clear()
 {
     // default
     self::$charset = 'utf-8';
     self::$type = 'html';
     self::$from = false;
     self::$subject = false;
     self::$html = false;
     self::$text = false;
     self::$from_name = false;
     self::$from_email = false;
     self::$file = false;
 }
開發者ID:rigidus,項目名稱:ea,代碼行數:13,代碼來源:mail.php

示例5: mail

	function send_mails() {
		$data = obj::db()->sql('select * from misc where type = "mail_notify" and data1 < '.time());
		if (!empty($data)) {
			foreach ($data as $send) {
				$mail = new mail($send['data2']);
				if (!obj::db()->sql('select id from orders where (id ='.$send['data5'].' and spam = 0)',2)) {
					if ($send['data3']) $mail->text($send['data4'])->send($send['data3']);
					else $mail->text($send['data4'])->send();
					obj::db()->sql('delete from misc where id ='.$send['id'],0);
				}
			}
		}
	}
開發者ID:4otaku,項目名稱:4otaku,代碼行數:13,代碼來源:wrapper.php

示例6: sendText

 function sendText($template, $to, $toName, $from, $fromName, $subject)
 {
     $body = $this->gui->fetch($template);
     mail::text($to, $toName, $from, $fromName, $subject, $body);
 }
開發者ID:laiello,項目名稱:zoop,代碼行數:5,代碼來源:Message.php


注:本文中的mail::text方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。