• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP email_handler类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中email_handler的典型用法代码示例。如果您正苦于以下问题:PHP email_handler类的具体用法?PHP email_handler怎么用?PHP email_handler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了email_handler类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: sendWatchEmails

function sendWatchEmails($id)
{
    global $DBPrefix, $system;
    $query = "SELECT name, email, item_watch, id FROM " . $DBPrefix . "users WHERE item_watch LIKE '% " . $id . " %'";
    $res = mysql_query($query);
    $system->check_mysql($res, $query, __LINE__, __FILE__);
    while ($watchusers = mysql_fetch_array($res)) {
        $keys = explode(' ', $watchusers['item_watch']);
        // If keyword matches with opened auction title or/and desc send user a mail
        if (in_array($id, $keys)) {
            $emailer = new email_handler();
            $emailer->assign_vars(array('URL' => $system->SETTINGS['siteurl'] . 'item.php?mode=1&id=' . $id, 'TITLE' => $Auction['title'], 'NAME' => $watchusers['name']));
            $emailer->email_uid = $watchusers['id'];
            $emailer->email_sender($watchusers['email'], 'auctionend_watchmail.inc.php', $system->SETTINGS['sitename'] . ' - ' . $MSG['471']);
        }
    }
}
开发者ID:ronando,项目名称:WeBid,代码行数:17,代码来源:functions_cron.php


示例2: sendWatchEmails

function sendWatchEmails($id)
{
    global $DBPrefix, $system, $db;
    $query = "SELECT name, email, item_watch, id FROM " . $DBPrefix . "users WHERE item_watch LIKE :item_watch";
    $params = array();
    $params[] = array(':item_watch', '% ' . $id . ' %', 'str');
    $db->query($query, $params);
    while ($watchusers = $db->fetch()) {
        $keys = explode(' ', $watchusers['item_watch']);
        // If keyword matches with opened auction title or/and desc send user a mail
        if (in_array($id, $keys)) {
            $emailer = new email_handler();
            $emailer->assign_vars(array('URL' => $system->SETTINGS['siteurl'] . 'item.php?mode=1&id=' . $id, 'TITLE' => htmlspecialchars($Auction['title']), 'NAME' => $watchusers['name']));
            $emailer->email_uid = $watchusers['id'];
            $emailer->email_sender($watchusers['email'], 'auctionend_watchmail.inc.php', $system->SETTINGS['sitename'] . ' - ' . $MSG['471']);
        }
    }
}
开发者ID:Nozlaf,项目名称:WeBid,代码行数:18,代码来源:functions_cron.php


示例3: email_handler

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2016 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
$emailer = new email_handler();
$emailer->assign_vars(array('SITE_URL' => $system->SETTINGS['siteurl'], 'SITENAME' => $system->SETTINGS['sitename'], 'A_ID' => $auction_id, 'A_TITLE' => $title, 'A_TYPE' => $atype == 1 ? $MSG['642'] : $MSG['641'], 'A_PICURL' => $pict_url != '' ? UPLOAD_FOLDER . $auction_id . '/' . $pict_url : 'images/email_alerts/default_item_img.jpg', 'A_MINBID' => $system->print_money($minimum_bid, false), 'A_RESERVE' => $system->print_money($reserve_price, false), 'A_BNPRICE' => $system->print_money($buy_now_price, false), 'A_ENDS' => $dt->printDateTz($a_ends), 'C_NAME' => $user->user_data['name']));
$emailer->email_uid = $user->user_data['id'];
$subject = $system->SETTINGS['sitename'] . ' ' . $MSG['auction_awaiting_approval'] . ': ' . $title . ' (' . $auction_id . ')';
$emailer->email_sender($user->user_data['email'], 'auction_pending_moderation.php', $subject);
开发者ID:Nozlaf,项目名称:WeBid,代码行数:21,代码来源:auction_pending_moderation.php


示例4: array

 $params[] = array(':user_id', $user->user_data['id'], 'int');
 $db->query($query, $params);
 $sent_to = array();
 while ($row = $db->fetch()) {
     if (isset($match)) {
         unset($match);
     }
     $w_title = explode(' ', strtolower($_SESSION['SELL_title']));
     $w_descr = explode(' ', strtolower(str_replace(array('<br>', "\n"), '', strip_tags($_SESSION['SELL_description']))));
     $w_nick = strtolower($user->user_data['nick']);
     $key = explode(' ', $row['auc_watch']);
     if (is_array($key) && count($key) > 0) {
         foreach ($key as $k => $v) {
             $v = trim(strtolower($v));
             if ((in_array($v, $w_title) || in_array($v, $w_descr) || $v == $w_nick) && !in_array($row['id'], $sent_to)) {
                 $emailer = new email_handler();
                 $emailer->assign_vars(array('URL' => $system->SETTINGS['siteurl'] . 'item.php?id=' . $_SESSION['SELL_auction_id'], 'SITENAME' => $system->SETTINGS['sitename'], 'TITLE' => $_SESSION['SELL_title'], 'REALNAME' => $row['name'], 'KWORD' => $row['auc_watch']));
                 $emailer->email_uid = $row['id'];
                 $emailer->email_sender($row['email'], 'auction_watchmail.inc.php', $system->SETTINGS['sitename'] . '  ' . $MSG['471']);
                 $sent_to[] = $row['id'];
             }
         }
     }
 }
 if ($user->user_data['startemailmode'] == 'yes') {
     include $include_path . 'email_auction_confirmation.php';
 }
 if ($system->SETTINGS['bn_only'] == 'y' && $system->SETTINGS['bn_only_disable'] == 'y' && $system->SETTINGS['bn_only_percent'] < 100) {
     $query = "SELECT COUNT(*) as count FROM " . $DBPrefix . "auctions\n\t\t\t\t\t\t\tWHERE closed = 0 AND suspended = 0 AND user = :user_id";
     $params = array();
     $params[] = array(':user_id', $user->user_data['id'], 'int');
开发者ID:laughingpain,项目名称:WeBid,代码行数:31,代码来源:sell.php


示例5: array

 *   copyright				: (C) 2008 - 2015 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
// Check if the e-mail has to be sent or not
$query = "SELECT endemailmode FROM " . $DBPrefix . "users WHERE id = :seller_id";
$params = array();
$params[] = array(':seller_id', $Seller['id'], 'int');
$db->query($query, $params);
$emailmode = $db->result('endemailmode');
$qty_current = $Auction['initial_quantity'] == $Auction['quantity'] ? $Auction['initial_quantity'] : $Auction['quantity'];
$qty_sold = $Auction['initial_quantity'] - $qty_current;
$qty_left = $Auction['quantity'];
$report_text = $Winner['nick'] . ' - <a href="mailto:' . $Winner['email'] . '">' . $Winner['email'] . '</a>';
$report_text .= '<br>' . $MSG['30_0086'] . $Winner['address'] . ', ' . $Winner['city'] . ', ' . $Winner['prov'] . ', ' . $Winner['zip'] . ', ' . $Winner['country'];
if ($emailmode == 'one') {
    $emailer = new email_handler();
    $emailer->assign_vars(array('S_NAME' => $Seller['name'], 'A_URL' => $system->SETTINGS['siteurl'] . 'item.php?id=' . $Auction['id'], 'A_PICURL' => $Auction['pict_url'] != '' ? $uploaded_path . $Auction['id'] . '/' . $Auction['pict_url'] : 'images/email_alerts/default_item_img.jpg', 'A_TITLE' => $Auction['title'], 'A_CURRENTBID' => $system->print_money($Auction['buy_now']), 'A_QTY_SOLD' => $qty_sold, 'A_QTY_LEFT' => $qty_left, 'A_QTY_THIS_SALE' => $qty, 'A_ENDS' => $ends_string, 'B_REPORT' => $report_text, 'SITE_URL' => $system->SETTINGS['siteurl'], 'SITENAME' => $system->SETTINGS['sitename']));
    $emailer->email_uid = $Seller['id'];
    $subject = $system->SETTINGS['sitename'] . ' Some items have been sold in ' . $Auction['title'];
    $emailer->email_sender($Seller['email'], 'email_seller_partial_winner.inc.php', $subject);
}
开发者ID:laughingpain,项目名称:WeBid,代码行数:31,代码来源:email_seller_partial_winner.php


示例6: email_handler

        $USER = $db->result();
        $emailer = new email_handler();
        $emailer->assign_vars(array('SITENAME' => $system->SETTINGS['sitename'], 'SITEURL' => $system->SETTINGS['siteurl'], 'ADMINMAIL' => $system->SETTINGS['adminmail'], 'CONFIRMURL' => $system->SETTINGS['siteurl'] . 'confirm.php?id=' . $USER['id'] . '&hash=' . md5($MD5_PREFIX . $USER['nick']), 'C_NAME' => $USER['name']));
        $emailer->email_uid = $USER['id'];
        $emailer->email_sender($USER['email'], 'usermail.inc.php', $system->SETTINGS['sitename'] . ' ' . $MSG['098']);
        $ERR = $MSG['059'];
    }
}
if (isset($_GET['payreminder']) && isset($_GET['id']) && is_numeric($_GET['id'])) {
    $query = "SELECT id, name, email, balance FROM " . $DBPrefix . "users WHERE id = :user_id";
    $params = array();
    $params[] = array(':user_id', $_GET['id'], 'int');
    $db->query($query, $params);
    if ($db->numrows() > 0) {
        $USER = $db->result();
        $emailer = new email_handler();
        $emailer->assign_vars(array('SITENAME' => $system->SETTINGS['sitename'], 'LINK' => $system->SETTINGS['siteurl'] . 'outstanding.php', 'C_NAME' => $USER['name'], 'BALANCE' => $USER['balance']));
        $emailer->email_uid = $USER['id'];
        $emailer->email_sender($USER['email'], 'payment_reminder.inc.php', $system->SETTINGS['sitename'] . ' ' . $MSG['766']);
        $ERR = $MSG['765'];
    }
}
if (isset($_GET['usersfilter'])) {
    $_SESSION['usersfilter'] = $_GET['usersfilter'];
    switch ($_GET['usersfilter']) {
        case 'all':
            unset($_SESSION['usersfilter']);
            unset($Q);
            break;
        case 'active':
            $Q = 0;
开发者ID:laughingpain,项目名称:WeBid,代码行数:31,代码来源:listusers.php


示例7: check_balance

 function check_balance()
 {
     global $system, $DBPrefix, $MSG, $db;
     // check if user needs to be suspended
     if ($system->SETTINGS['fee_type'] == 1 && $this->logged_in && $this->user_data['suspended'] != 7 && $system->SETTINGS['fee_disable_acc'] == 'y') {
         if ($system->SETTINGS['fee_max_debt'] <= -1 * $this->user_data['balance']) {
             $query = "UPDATE " . $DBPrefix . "users SET suspended = 7 WHERE id = :user_id";
             $params = array();
             $params[] = array(':user_id', $this->user_data['id'], 'int');
             $db->query($query, $params);
             // send email
             $emailer = new email_handler();
             $emailer->assign_vars(array('SITENAME' => $system->SETTINGS['sitename'], 'NAME' => $this->user_data['name'], 'BALANCE' => $system->print_money($this->user_data['balance']), 'OUTSTANDING' => $system->SETTINGS['siteurl'] . 'outstanding.php'));
             $emailer->email_uid = $this->user_data['id'];
             $emailer->email_sender($this->user_data['email'], 'suspended_balance.inc.php', $system->SETTINGS['sitename'] . ' - ' . $MSG['753']);
         }
     }
 }
开发者ID:presh606,项目名称:WeBid,代码行数:18,代码来源:class_user.php


示例8: array

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2015 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
// Check if the e-mail has to be sent or not
$query = "SELECT endemailmode FROM " . $DBPrefix . "users WHERE id = :seller_id";
$params = array();
$params[] = array(':seller_id', $Seller['id'], 'int');
$db->query($query, $params);
$emailmode = $db->result('endemailmode');
if ($emailmode == 'one') {
    $emailer = new email_handler();
    $emailer->assign_vars(array('S_NAME' => $Seller['name'], 'A_URL' => $system->SETTINGS['siteurl'] . 'item.php?id=' . $Auction['id'], 'A_PICURL' => $Auction['pict_url'] != '' ? $uploaded_path . $Auction['id'] . '/' . $Auction['pict_url'] : 'images/email_alerts/default_item_img.jpg', 'A_TITLE' => $Auction['title'], 'A_CURRENTBID' => $system->print_money($Auction['current_bid']), 'A_QTY' => $Auction['quantity'], 'A_ENDS' => $ends_string, 'B_REPORT' => $report_text, 'SITE_URL' => $system->SETTINGS['siteurl'], 'SITENAME' => $system->SETTINGS['sitename']));
    $emailer->email_uid = $Seller['id'];
    $subject = $system->SETTINGS['sitename'] . ' ' . $MSG['079'] . ' ' . $MSG['907'] . ' ' . $system->uncleanvars($Auction['title']);
    $emailer->email_sender($Seller['email'], 'endauction_winner.inc.php', $subject);
}
开发者ID:laughingpain,项目名称:WeBid,代码行数:29,代码来源:email_endauction_winner.php


示例9: email_handler

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2015 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
$emailer = new email_handler();
$emailer->assign_vars(array('SITENAME' => $system->SETTINGS['sitename'], 'SITEURL' => $system->SETTINGS['siteurl'], 'ADMINMAIL' => $system->SETTINGS['adminmail'], 'CONFIRMURL' => $system->SETTINGS['siteurl'] . 'confirm.php?id=' . $TPL_id_hidden . '&hash=' . md5($MD5_PREFIX . $TPL_nick_hidden), 'C_NAME' => $TPL_name_hidden));
$emailer->email_uid = $TPL_id_hidden;
$emailer->email_sender($TPL_email_hidden, 'usermail.inc.php', $system->SETTINGS['sitename'] . ' ' . $MSG['098']);
开发者ID:laughingpain,项目名称:WeBid,代码行数:20,代码来源:email_user_confirmation.php


示例10: email_handler

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2016 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
$emailer = new email_handler();
$emailer->assign_vars(array('SITE_URL' => $system->SETTINGS['siteurl'], 'SITENAME' => $system->SETTINGS['sitename'], 'ADMINMAIL' => $system->SETTINGS['adminmail'], 'REPORT' => $report, 'REPORT_WINNER' => isset($report_winner) ? $MSG['communative_report_winner_yes'] : $MSG['communative_report_winner_no'], 'S_NAME' => $row['name']));
$emailer->email_uid = $row['id'];
$emailer->email_sender($row['email'], 'endauction_cumulative.inc.php', $MSG['25_0199']);
开发者ID:Nozlaf,项目名称:WeBid,代码行数:20,代码来源:endauction_cumulative.php


示例11: email_handler

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2015 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
//echo "got here ". $Winner['name'];
$item_title = $system->uncleanvars($Auction['title']);
$emailer = new email_handler();
$emailer->assign_vars(array('W_NAME' => $Winner['name'], 'A_PICURL' => $Auction['pict_url'] != '' ? $uploaded_path . $Auction['id'] . '/' . $Auction['pict_url'] : 'images/email_alerts/default_item_img.jpg', 'A_URL' => $system->SETTINGS['siteurl'] . 'item.php?id=' . $Auction['id'], 'A_TITLE' => $Auction['title'], 'A_CURRENTBID' => $system->print_money($Auction['buy_now']), 'A_QUANTITY' => $qty, 'A_ENDS' => $ends_string, 'S_NICK' => $Seller['nick'], 'S_EMAIL' => $Seller['email'], 'SITE_URL' => $system->SETTINGS['siteurl'], 'SITENAME' => $system->SETTINGS['sitename']));
$emailer->email_uid = $Winner['id'];
$emailer->email_sender($Winner['email'], 'endauction_multi_item_win.inc.php', $system->SETTINGS['sitename'] . 'You Won ' . $item_title);
开发者ID:laughingpain,项目名称:WeBid,代码行数:22,代码来源:endauction_multi_item_win.php


示例12: email_handler

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2014 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
$item_title = $system->uncleanvars($Auction['title']);
$emailer = new email_handler();
$emailer->assign_vars(array('W_NAME' => $Winner['name'], 'A_PICURL' => $Auction['pict_url'] != '' ? $uploaded_path . $Auction['id'] . '/' . $Auction['pict_url'] : 'images/email_alerts/default_item_img.jpg', 'A_URL' => $system->SETTINGS['siteurl'] . 'item.php?id=' . $Auction['id'], 'A_TITLE' => $item_title, 'A_CURRENTBID' => $system->print_money($Auction['current_bid'], true, false), 'A_ENDS' => $ends_string, 'S_NICK' => $Seller['nick'], 'S_EMAIL' => $Seller['email'], 'SITE_URL' => $system->SETTINGS['siteurl'], 'SITENAME' => $system->SETTINGS['sitename']));
$emailer->email_uid = $Winner['id'];
$emailer->email_sender($Winner['email'], 'endauction_youwin_nodutch.inc.php', $system->SETTINGS['sitename'] . $MSG['909'] . ': ' . $item_title);
开发者ID:janukasama,项目名称:ADCAU_SPORTE,代码行数:21,代码来源:email_endauction_youwin_nodutch.php


示例13: array

     $ERR = $ERR_622;
 } else {
     $query = "SELECT title FROM " . $DBPrefix . "auctions WHERE id = :auction_id";
     $params = array();
     $params[] = array(':auction_id', $auction_id, 'int');
     $db->query($query, $params);
     if ($db->numrows() == 0) {
         $ERR = $ERR_622;
     } else {
         $item_title = $db->result('title');
         $item_title = $system->uncleanvars($item_title);
         $from_email = $system->SETTINGS['users_email'] == 'n' ? $user->user_data['email'] : $system->SETTINGS['adminmail'];
         // Send e-mail message
         $subject = $MSG['335'] . ' ' . $system->SETTINGS['sitename'] . ' ' . $MSG['336'] . ' ' . $item_title;
         $message = $MSG['084'] . ' ' . $MSG['240'] . ': ' . $from_email . "\n\n" . $_POST['TPL_text'];
         $emailer = new email_handler();
         $emailer->email_uid = $user_id;
         $emailer->email_basic($subject, $email, nl2br($message), $user->user_data['name'] . '<' . $from_email . '>');
         //send the email :D
         // send a copy to their mesasge box
         $nowmessage = nl2br($system->cleanvars($message));
         $query = "INSERT INTO " . $DBPrefix . "messages (sentto, sentfrom, sentat, message, subject)\n\t\t\t\t\tVALUES (:id, :user_id, :times, :nowmessage, :msg)";
         $params = array();
         $params[] = array(':id', $user_id, 'int');
         $params[] = array(':user_id', $user->user_data['id'], 'int');
         $params[] = array(':times', time(), 'int');
         $params[] = array(':nowmessage', $nowmessage, 'str');
         $params[] = array(':msg', $system->cleanvars(sprintf($MSG['651'], $item_title)), 'str');
         $db->query($query, $params);
         $sent = true;
     }
开发者ID:janukasama,项目名称:ADCAU_SPORTE,代码行数:31,代码来源:email_request.php


示例14: email_handler

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2016 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
$emailer = new email_handler();
$emailer->assign_vars(array('C_ID' => addslashes($TPL_id_hidden), 'C_NAME' => addslashes($TPL_name_hidden), 'C_NICK' => addslashes($TPL_nick_hidden), 'C_ADDRESS' => addslashes($_POST['TPL_address']), 'C_CITY' => addslashes($_POST['TPL_city']), 'C_PROV' => addslashes($_POST['TPL_prov']), 'C_ZIP' => addslashes($_POST['TPL_zip']), 'C_COUNTRY' => addslashes($_POST['TPL_country']), 'C_PHONE' => addslashes($_POST['TPL_phone']), 'C_EMAIL' => addslashes($_POST['TPL_email']), 'C_PASSWORD' => addslashes($TPL_password_hidden), 'SITENAME' => $system->SETTINGS['sitename'], 'SITEURL' => $system->SETTINGS['siteurl'], 'ADMINEMAIL' => $system->SETTINGS['adminmail'], 'CONFIRMATION_PAGE' => $system->SETTINGS['siteurl'] . 'confirm.php?id=' . $TPL_id_hidden . '&hash=' . md5($MD5_PREFIX . $TPL_nick_hidden), 'LOGO' => $system->SETTINGS['siteurl'] . 'uploaded/logo/' . $system->SETTINGS['logo']));
$emailer->email_uid = $TPL_id_hidden;
$emailer->email_sender(array($TPL_email_hidden, $system->SETTINGS['adminmail']), 'user_needapproval.inc.php', $system->SETTINGS['sitename'] . ' ' . $MSG['098']);
开发者ID:alenteria,项目名称:WeBid,代码行数:20,代码来源:email_user_needapproval.php


示例15: substr

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2014 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
if (strlen(strip_tags($Auction['description'])) > 60) {
    $description = substr(strip_tags($Auction['description']), 0, 50) . '...';
} else {
    $description = $Auction['description'];
}
$emailer = new email_handler();
$emailer->assign_vars(array('W_NAME' => $Winner['name'], 'W_WANTED' => $Winner['wanted'], 'W_GOT' => $Winner['quantity'], 'A_URL' => $system->SETTINGS['siteurl'] . 'item.php?id=' . $Auction['id'], 'A_TITLE' => $system->uncleanvars($Auction['title']), 'A_DESCRIPTION' => $description, 'A_CURRENTBID' => $system->print_money($WINNERS_BID[$Winner['current_bid']], true, false), 'A_ENDS' => $ends_string, 'S_NICK' => $Seller['nick'], 'S_EMAIL' => $Seller['email'], 'S_PAYMENT' => $Seller['payment_details'], 'SITE_URL' => $system->SETTINGS['siteurl'], 'SITENAME' => $system->SETTINGS['sitename'], 'ADMINEMAIL' => $system->SETTINGS['adminmail']));
$emailer->email_uid = $Winner['id'];
$emailer->email_sender($Winner['email'], 'endauction_youwin.inc.php', $MSG['909']);
开发者ID:janukasama,项目名称:ADCAU_SPORTE,代码行数:25,代码来源:email_endauction_youwin.php


示例16: array

         $params[] = array(':user_id', $Auction['user'], 'int');
         $db->query($query, $params);
         $query = "INSERT INTO " . $DBPrefix . "useraccounts (user_id, auc_id, date, finalval, total, paid) VALUES\n\t\t\t\t\t\t\t(:user_id, :auc_id, :time, :finalval, :total, 1)";
         $params = array();
         $params[] = array(':user_id', $Auction['user'], 'int');
         $params[] = array(':auc_id', $id, 'int');
         $params[] = array(':time', $NOW, 'int');
         $params[] = array(':finalval', $fee_value, 'int');
         $params[] = array(':total', $fee_value, 'int');
         $db->query($query, $params);
     } else {
         $query = "UPDATE " . $DBPrefix . "users SET suspended = 5 WHERE id = :user_id";
         $params = array();
         $params[] = array(':user_id', $Auction['user'], 'int');
         $db->query($query, $params);
         $emailer = new email_handler();
         $emailer->assign_vars(array('ID' => $Auction['id'], 'TITLE' => $system->uncleanvars($Auction['title']), 'NAME' => $Seller['name'], 'LINK' => $system->SETTINGS['siteurl'] . 'pay.php?a=7&auction_id=' . $Auction['id']));
         $emailer->email_uid = $Auction['user'];
         $emailer->email_sender($Seller['email'], 'final_value_fee.inc.php', $system->SETTINGS['sitename'] . ' - ' . $MSG['523']);
         $ff_paid = 0;
     }
 }
 $query = "INSERT INTO " . $DBPrefix . "winners\n\t\t\t\t\t(auction, seller, winner, bid, closingdate, feedback_win, feedback_sel, qty, paid, bf_paid, ff_paid, shipped) VALUES\n\t\t\t\t\t(:auc_id, :seller_id, :winner_id, :buy_now, :time, 0, 0, :quantity, 0, :bf_paid, :ff_paid, 0)";
 $params = array();
 $params[] = array(':auc_id', $id, 'int');
 $params[] = array(':seller_id', $Auction['user'], 'int');
 $params[] = array(':winner_id', $Winner['id'], 'int');
 $params[] = array(':buy_now', $Auction['buy_now'], 'float');
 $params[] = array(':time', $NOW, 'int');
 $params[] = array(':quantity', $qty, 'int');
 $params[] = array(':bf_paid', $bf_paid, 'float');
开发者ID:keramist,项目名称:WeBid,代码行数:31,代码来源:buy_now.php


示例17: email_handler

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2015 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
$emailer = new email_handler();
$emailer->assign_vars(array('SITE_URL' => $system->SETTINGS['siteurl'], 'SITENAME' => $system->SETTINGS['sitename'], 'ADMINMAIL' => $system->SETTINGS['adminmail'], 'REPORT' => $report, 'S_NAME' => $row['name']));
$emailer->email_uid = $row['id'];
$emailer->email_sender($row['email'], 'endauction_cumulative.inc.php', $MSG['25_0199']);
开发者ID:keramist,项目名称:WeBid,代码行数:20,代码来源:email_endauction_cumulative.php


示例18: email_handler

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2015 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
$item_title = $system->uncleanvars($item_title);
$emailer = new email_handler();
$emailer->assign_vars(array('SITE_URL' => $system->SETTINGS['siteurl'], 'SITENAME' => $system->SETTINGS['sitename'], 'C_NAME' => $OldWinner_name, 'C_BID' => $OldWinner_bid, 'N_BID' => $new_bid, 'A_TITLE' => $item_title, 'A_ENDS' => $ends_string, 'A_PICURL' => $pict_url_plain != '' ? $uploaded_path . $item_id . '/' . $pict_url_plain : 'images/email_alerts/default_item_img.jpg', 'A_URL' => $system->SETTINGS['siteurl'] . 'item.php?id=' . $item_id));
$emailer->email_uid = $OldWinner_id;
$emailer->email_sender($OldWinner_email, 'no_longer_winner.inc.php', $system->SETTINGS['sitename'] . ' ' . $MSG['906'] . ': ' . $item_title);
开发者ID:keramist,项目名称:WeBid,代码行数:21,代码来源:email_outbid.php


示例19: email_handler

<?php

/***************************************************************************
 *   copyright				: (C) 2008 - 2015 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
if (!defined('InWeBid')) {
    exit;
}
if ($user->user_data['startemailmode'] == 'yes') {
    $emailer = new email_handler();
    $emailer->assign_vars(array('SITE_URL' => $system->SETTINGS['siteurl'], 'SITENAME' => $system->SETTINGS['sitename'], 'A_ID' => $auction_id, 'A_TITLE' => $title, 'A_TYPE' => $atype == 1 ? $MSG['642'] : $MSG['641'], 'A_PICURL' => $pict_url != '' ? $uploaded_path . $auction_id . '/' . $pict_url : 'images/email_alerts/default_item_img.jpg', 'A_MINBID' => $system->print_money($minimum_bid), 'A_RESERVE' => $system->print_money($reserve_price), 'A_BNPRICE' => $system->print_money($buy_now_price), 'A_ENDS' => ArrangeDateNoCorrection($a_ends + $system->tdiff), 'C_NAME' => $user->user_data['name']));
    $emailer->email_uid = $user->user_data['id'];
    $subject = $system->SETTINGS['sitename'] . ' ' . $MSG['099'] . ': ' . $title . ' (' . $auction_id . ')';
    $emailer->email_sender($user->user_data['email'], 'auctionmail.inc.php', $subject);
}
开发者ID:laughingpain,项目名称:WeBid,代码行数:23,代码来源:email_auction_confirmation.php


示例20: nl2br

 $nowmessage = nl2br($message);
 if (!$email) {
     $userarray = $db->result();
     // check use mailbox insnt full
     $query = "SELECT * FROM " . $DBPrefix . "messages WHERE sentto = :user_id";
     $params = array();
     $params[] = array(':user_id', $userarray['id'], 'int');
     $db->query($query, $params);
     if ($db->numrows() >= $mailbox_space) {
         $_SESSION['message'] = sprintf($MSG['443'], $sendto);
         header('location: mail.php');
         exit;
     }
 } else {
     // send the email
     $emailer = new email_handler();
     $from_email = $system->SETTINGS['users_email'] == 'n' ? $user->user_data['email'] : $system->SETTINGS['adminmail'];
     $emailer->email_basic($subject, $sendto, $nowmessage, $from_email);
 }
 // send message
 $id_type = $email ? 'fromemail' : 'sentto';
 $query = "INSERT INTO " . $DBPrefix . "messages (" . $id_type . ", sentfrom, message, subject, reply_of, question)\n\t\t\tVALUES (:to_ids, :sender_id, :nowmessages, :subjects, :reply_of_hash, :question_hash)";
 $params = array();
 $params[] = array(':to_ids', $email ? $sendto : $userarray['id'], 'bool');
 $params[] = array(':sender_id', $user->user_data['id'], 'int');
 $params[] = array(':nowmessages', $nowmessage, 'str');
 $params[] = array(':subjects', $subject, 'str');
 $params[] = array(':reply_of_hash', $_SESSION['reply_of' . $_POST['hash']], 'int');
 $params[] = array(':question_hash', $_SESSION['question' . $_POST['hash']], 'int');
 $db->query($query, $params);
 // Track IP
开发者ID:Nozlaf,项目名称:WeBid,代码行数:31,代码来源:mail.php



注:本文中的email_handler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP emailer类代码示例发布时间:2022-05-23
下一篇:
PHP email类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap