本文整理汇总了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');
}
}
示例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();
}
示例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;
}
示例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');
}
示例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');
}
示例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();
}