当前位置: 首页>>代码示例>>PHP>>正文


PHP email_handler::email_sender方法代码示例

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


在下文中一共展示了email_handler::email_sender方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: elseif

        $TPL_error_text = $ERR_008;
    }
    if ($system->SETTINGS['spam_sendtofriend'] == 2) {
        $resp = recaptcha_check_answer($system->SETTINGS['recaptcha_private'], $_POST['g-recaptcha-response']);
        if (!$resp) {
            $TPL_error_text = $MSG['752'];
        }
    } elseif ($system->SETTINGS['spam_sendtofriend'] == 1) {
        if (!$resp->check($_POST['captcha_code'])) {
            $TPL_error_text = $MSG['752'];
        }
    }
    if (!empty($TPL_error_text)) {
        $emailsent = 1;
    } else {
        $emailsent = 0;
        $emailer = new email_handler();
        $emailer->assign_vars(array('S_NAME' => $_POST['sender_name'], 'S_EMAIL' => $_POST['sender_email'], 'S_COMMENT' => $_POST['sender_comment'], 'F_NAME' => $_POST['friend_name'], 'TITLE' => $TPL_item_title, 'URL' => $system->SETTINGS['siteurl'] . 'item.php?id=' . $id, 'SITENAME' => $system->SETTINGS['sitename'], 'SITEURL' => $system->SETTINGS['siteurl'], 'ADMINEMAIL' => $system->SETTINGS['adminmail']));
        $emailer->email_sender($_POST['friend_email'], 'friendmail.inc.php', $MSG['905']);
    }
}
if ($system->SETTINGS['spam_sendtofriend'] == 2) {
    $capcha_text = recaptcha_get_html($system->SETTINGS['recaptcha_public']);
} elseif ($system->SETTINGS['spam_sendtofriend'] == 1) {
    $capcha_text = $spam_html;
}
$template->assign_vars(array('ERROR' => $TPL_error_text, 'ID' => intval($_REQUEST['id']), 'CAPTCHATYPE' => $system->SETTINGS['spam_sendtofriend'], 'CAPCHA' => isset($capcha_text) ? $capcha_text : '', 'TITLE' => $TPL_item_title, 'FRIEND_NAME' => isset($_POST['friend_name']) ? $system->cleanvars($_POST['friend_name']) : '', 'FRIEND_EMAIL' => isset($_POST['friend_email']) ? $system->cleanvars($_POST['friend_email']) : '', 'YOUR_NAME' => $user->logged_in ? $system->cleanvars($user->user_data['name']) : '', 'YOUR_EMAIL' => $user->logged_in ? $system->cleanvars($user->user_data['email']) : '', 'COMMENT' => isset($_POST['sender_comment']) ? $system->cleanvars($_POST['sender_comment']) : '', 'EMAILSENT' => $emailsent));
include 'header.php';
$template->set_filenames(array('body' => 'friend.tpl'));
$template->display('body');
include 'footer.php';
开发者ID:alenteria,项目名称:WeBid,代码行数:31,代码来源:friend.php

示例4: addslashes

<?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 . $hash), 'LOGO' => $system->SETTINGS['siteurl'] . 'uploaded/logo/' . $system->SETTINGS['logo']));
$emailer->email_uid = $TPL_id_hidden;
if (!$system->SETTINGS['email_admin_on_signup']) {
    $email_to = $TPL_email_hidden;
} else {
    $email_to = array($TPL_email_hidden, $system->SETTINGS['adminmail']);
}
$emailer->email_sender($email_to, 'user_needapproval.inc.php', $system->SETTINGS['sitename'] . ' ' . $MSG['098']);
开发者ID:Nozlaf,项目名称:WeBid,代码行数:25,代码来源:user_needapproval.php

示例5: while

 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');
     $db->query($query, $params);
     $totalaucs = $db->result('count');
     if ($totalaucs > 0) {
开发者ID:laughingpain,项目名称:WeBid,代码行数:31,代码来源:sell.php

示例6: COUNT

        }
    }
    $data[] = $auctions_count;
    // get auctions sold item
    $query = "SELECT COUNT(DISTINCT a.id) AS total FROM " . $DBPrefix . "winners a\n\t\tLEFT JOIN " . $DBPrefix . "auctions b ON (a.auction = b.id)\n\t\tWHERE b.closed = 1 AND a.seller = :sellers AND a.is_read = 0";
    $params = array();
    $params[] = array(':sellers', $secid, 'int');
    $db->query($query, $params);
    $data[] = $db->result('total');
    return $data;
}
// Send buyer's request to the administrator
if (isset($_POST['requesttoadmin'])) {
    $emailer = new email_handler();
    $emailer->assign_vars(array('NAME' => $user->user_data['name'], 'NICK' => $user->user_data['nick'], 'EMAIL' => $user->user_data['email'], 'ID' => $user->user_data['id']));
    $emailer->email_sender($system->SETTINGS['adminmail'], 'buyer_request.inc.php', $MSG['820']);
    $_SESSION['TMP_MSG'] = $MSG['25_0142'];
}
$cptab = isset($_GET['cptab']) ? $_GET['cptab'] : '';
switch ($cptab) {
    default:
    case 'summary':
        $_SESSION['cptab'] = 'summary';
        break;
    case 'account':
        $_SESSION['cptab'] = 'account';
        break;
    case 'selling':
        $_SESSION['cptab'] = 'selling';
        break;
    case 'buying':
开发者ID:keramist,项目名称:WeBid,代码行数:31,代码来源:user_menu.php

示例7:

<?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;
}
$emailer = new email_handler();
$emailer->assign_vars(array('SITE_URL' => $system->SETTINGS['siteurl'], 'SITENAME' => $system->SETTINGS['sitename'], 'C_NAME' => $USER['name']));
$emailer->userlang = $language;
$emailer->email_sender(array($USER['email'], $system->SETTINGS['adminmail']), 'user_approved.inc.php', $system->SETTINGS['sitename'] . ' ' . $MSG['095']);
开发者ID:janukasama,项目名称:ADCAU_SPORTE,代码行数:20,代码来源:email_user_approved.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:

<?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:

<?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

示例11:

<?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

示例12: addslashes

<?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

示例13:

<?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

示例14: 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_initial = $Auction['initial_quantity'];
$qty_sold = $Auction['initial_quantity'] - $Auction['quantity'];
$qty_left = $Auction['quantity'];
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_INITIAL' => $qty_initial, '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'] . ' Your auction ' . $Auction['title'] . ' has ended';
    $emailer->email_sender($Seller['email'], 'email_seller_end_buynowonly.inc.php', $subject);
}
开发者ID:presh606,项目名称:WeBid,代码行数:31,代码来源:email_seller_end_buynowonly.php

示例15: array

<?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'], 'C_NAME' => $USER['name']));
$emailer->userlang = $language;
if (!$system->SETTINGS['email_admin_on_signup']) {
    $email_to = $USER['email'];
} else {
    $email_to = array($USER['email'], $system->SETTINGS['adminmail']);
}
$emailer->email_sender($email_to, 'user_approved.inc.php', $system->SETTINGS['sitename'] . ' ' . $MSG['095']);
开发者ID:Nozlaf,项目名称:WeBid,代码行数:25,代码来源:user_approved.php


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