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


PHP phpmailer::IsSendmail方法代碼示例

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


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

示例1: foreach

 function approve_pos($id)
 {
     if (isset($this->session->userdata['user'])) {
         $pos = $_POST['pos'];
         $has_superviser = false;
         if ($this->session->userdata['user_type'] == 3) {
             if ($this->has_store_superviser()) {
                 $has_superviser = true;
             }
         } else {
             if ($this->has_user_superviser()) {
                 $has_superviser = true;
             }
         }
         if ($has_superviser) {
             foreach ($pos as $key => $item) {
                 $this->orders_model->add_pos($key, mysql_escape_string($item));
             }
         } else {
             foreach ($pos as $key => $item) {
                 $this->orders_model->approve_pos($key, mysql_escape_string($item));
                 $verif_code = md5(time());
                 $this->status_model->insert($key, 0, $verif_code);
                 $mailer = new phpmailer();
                 $mailer->IsSendmail();
                 $mailer->From = 'noreply@domain.com';
                 $mailer->FromName = 'Belron admin';
                 $mailer->Subject = utf8_decode('Nouvelle commande ajoutée');
                 $email_message = "Une nouvelle commande vient d'être ajoutée <br/> \n                        Pour confirmer la receprion :<a href='" . base_url() . "orders/recieved/" . $key . "/" . $verif_code . "/'>" . base_url() . "orders/recieved/" . $key . "/" . $verif_code . "/ </a><br/>\n                        Pour confirmer le traitement :<a href='" . base_url() . "orders/submit/" . $key . "/" . $verif_code . "/'>" . base_url() . "orders/submit/" . $key . "/" . $verif_code . "/ </a><br/>\n                        Pour confirmer l'envoie :<a href='" . base_url() . "orders/send/" . $key . "/" . $verif_code . "/'>" . base_url() . "orders/send/" . $key . "/" . $verif_code . "/ </a>";
                 $mailer->MsgHTML($email_message);
                 $mailer->AddAddress('skander.jabouzi@groupimage.com', 'Skander Jabouzi');
                 $mailer->Send();
             }
         }
         redirect('wishlist/confirmation/');
     } else {
         redirect('login/storelogin');
     }
 }
開發者ID:jabouzi,項目名稱:belron,代碼行數:39,代碼來源:wishlist.php

示例2: alertComment

 private static function alertComment(Comments $comment)
 {
     require_once '../classes/utilities/class.phpmailer.php';
     $mail = new phpmailer();
     $mail->IsSendmail();
     $mail->FromName = "Comments";
     $mail->From = 'comment_notifier@eggmatters.com';
     $mail->Subject = "Comment by {$comment->userName} awaiting approval.";
     $mail->Host = $_SERVER['SERVER_NAME'];
     $mail->Body = "Comment Body:\n" . $comment->body;
     $mail->AddAddress("comment_notifier@eggmatters.com", "Comment Notifier");
     $mail->Send();
 }
開發者ID:eggmatters,項目名稱:eggmatters_com,代碼行數:13,代碼來源:Comments.php

示例3: sendMail

function sendMail($name, $subject, $data, $email)
{
    $mail = new phpmailer();
    $mail->IsSendmail();
    $mailBody = "From: {$name}\nEmail: {$email}\n{$data}";
    $mail->FromName = $name;
    $mail->From = 'site_questions@eggmatters.com';
    $mail->Subject = $subject;
    $mail->Host = $_SERVER['SERVER_NAME'];
    $mail->Body = $mailBody;
    $mail->AddAddress("site_questions@eggmatters.com", "Site Questions");
    $status = $mail->Send();
    return $status;
}
開發者ID:eggmatters,項目名稱:eggmatters_com,代碼行數:14,代碼來源:contact.php

示例4: phpmailer

 function request_cancel($order_id)
 {
     $order_status = $this->status_model->get($order_id);
     $problems = $_POST['problems'];
     $mailer = new phpmailer();
     $mailer->IsSendmail();
     $mailer->From = 'noreply@domain.com';
     $mailer->FromName = 'Belron admin';
     $mailer->Subject = utf8_decode('Demande pour annuler pour une demande');
     $email_message = "Une demande pour annuler une demande : <br/><br/>";
     foreach ($problems as $problem) {
         $email_message .= $problem . "<br/>";
     }
     $email_message .= "Pour confirmer l'annulation :<a href='" . base_url() . "orders/cancel/" . $order_id . "/" . $order_status[0]->code_verif . "/'>" . base_url() . "orders/cancel/" . $order_id . "/" . $order_status[0]->code_verif . "/ </a><br/>";
     $mailer->MsgHTML($email_message);
     $mailer->AddAddress('skander.jabouzi@groupimage.com', 'Skander Jabouzi');
     $mailer->Send();
     redirect('orders/request_confirmation');
 }
開發者ID:jabouzi,項目名稱:belron,代碼行數:19,代碼來源:orders.php

示例5: phpmailer

 function request_price()
 {
     $mailer = new phpmailer();
     $mailer->IsSendmail();
     $mailer->From = 'noreply@domain.com';
     $mailer->FromName = 'Belron admin';
     $mailer->Subject = utf8_decode('Demande pour pour revision de prix : #') . $_POST['id'];
     $email_message = "Une demande pour revision de prix : #{$_POST['id']}<br/><br/>";
     foreach ($problems as $problem) {
         $email_message .= $_POST['price_request'] . "<br/>";
     }
     $email_message .= "La page du produit : <a href='" . base_url() . "productsmanager/edit/" . $_POST['id'] . "/'>" . base_url() . "productsmanager/edit/" . $_POST['id'] . "/ </a><br/>";
     $mailer->MsgHTML($email_message);
     $mailer->AddAddress('skander.jabouzi@groupimage.com', 'Skander Jabouzi');
     $mailer->Send();
     redirect('orders/request_confirmation');
 }
開發者ID:jabouzi,項目名稱:belron,代碼行數:17,代碼來源:productsmanager.php

示例6: alertWhoops

 private static function alertWhoops($post)
 {
     require_once '../classes/utilities/class.phpmailer.php';
     ob_start();
     var_dump($post);
     $data = ob_get_clean();
     $mail = new phpmailer();
     $mail->IsSendmail();
     $mail->FromName = "FuckUps";
     $mail->From = 'comment_notifier@eggmatters.com';
     $mail->Subject = "something fucked up";
     $mail->Host = $_SERVER['SERVER_NAME'];
     $mail->Body = $data;
     $mail->AddAddress("comment_notifier@eggmatters.com", "Comment Notifier");
     $mail->Send();
 }
開發者ID:eggmatters,項目名稱:eggmatters_com,代碼行數:16,代碼來源:UsersController.php


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