<?php
class smtp_mailer extends xwbMailer {
var $smtp ;
function smtp_mailer (){
}
function adp_init($cfg){
$this->smtp_conn = 0;
$this->error = null;
$this->helo_rply = null;
$this->do_debug = 0;
}
function sendEmails($toList, $subject='s', $body=''){
//选项,输出编码
$options = array('out_charset' => 'UTF-8', 'format' => 1 );
$from = array(XWB_SEND_MAIL_FROM,'校园微博');
$emails = array();
if (!is_array($toList)){
$toList = array($toList);
}
foreach ($toList as $to_email ){
$emails[] = array($to_email, $to_email);
}
$this->SMTPAuth = true;
$this->setSMTP(XWB_SMTP_HOST, XWB_SMTP_USER, XWB_SMTP_PASS, XWB_SMTP_PORT);
$result = $this->Send($from, $emails, $subject, $body, $options);
//var_dump($result);
return $this->ErrorInfo;
}
}
/*~ class.phpmailer.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.3 |
| Contact: via sourceforge.net support pages (also www.codeworxtech.com) |
| Info: http://phpmailer.sourceforge.net |
| Support: http://sourceforge.net/projects/phpmailer/ |
| ------------------------------------------------------------------------- |
| Author: Andy Prevost (project admininistrator) |
| Author: Brent R. Matzelle (original founder) |
| Copyright (c) 2004-2007, Andy Prevost. All Rights Reserved. |
| Copyright (c) 2001-2003, Brent R. Matzelle |
| ------------------------------------------------------------------------- |
| License: Distributed under the Lesser General Public License (LGPL) |
| http://www.gnu.org/copyleft/lesser.html |
| This program is distributed in the hope that it will be useful - WITHOUT |
| ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| FITNESS FOR A PARTICULAR PURPOSE. |
| ------------------------------------------------------------------------- |
| We offer a number of paid services (www.codeworxtech.com): |
| - Web Hosting on highly optimized fast and secure servers |
| - Technology Consulting |
| - Oursourcing (highly qualified programmers and graphic designers) |
'---------------------------------------------------------------------------'
/**
* PHPMailer - PHP email transport class
* NOTE: Designed for use with PHP version 5 and up
* @package PHPMailer
* @author Andy Prevost
* @copyright 2004 - 2008 Andy Prevost
*/
class xwbMailer {
/////////////////////////////////////////////////
// PROPERTIES, PUBLIC
/////////////////////////////////////////////////
/**
* Email priority (1 = High, 3 = Normal, 5 = low).
* @var int
*/
var $Priority = 3;
/**
* Sets the CharSet of the message.
* @var string
*/
var $CharSet = 'GBK';
/**
* Sets the Content-type of the message.
* @var string
*/
var $ContentType = 'text/plain';
/**
* Sets the Encoding of the message. Options for this are "8bit",
* "7bit", "binary", "base64", and "quoted-printable".
* @var string
*/
var $Encoding = '8bit';
/**
* Holds the most recent mailer error message.
* @var string
*/
var $ErrorInfo = '';
/**
* Sets the From email address for the message.
* @var string
*/
var $From = '[email protected]';
/**
* Sets the From name of the message.
* @var string
*/
var $FromName = 'Root User';
/**
* Sets the Sender email (Return-Path) of the message. If not empty,
* will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
* @var string
*/
var $Sender = '';
/**
* Sets the Subject of the message.
* @var string
*/
var $Subject = '';
/**
* Sets the Body of the message. This can be either an HTML or text body.
* If HTML then run IsHTML(true).
* @var string
*/
var $Body = '';
/**
* Sets the text-only body of the message. This automatically sets the
* email to multipart/alternative. This body can be read by mail
* clients that do not have HTML email capability such as mutt. Clients
* that can read HTML will view the normal Body.
* @var string
*/
var $AltBody = '';
/**
* Sets word wrapping on the body of the message to a given number of
* characters.
* @var int
*/
var $WordWrap = 0;
/**
* Method to send mail: ("mail", "sendmail", or "smtp").
* @var string
*/
var $Mailer = 'smtp';
/**
* Sets the path of the sendmail program.
* @var string
*/
var $Sendmail = '/usr/sbin/sendmail';
/**
* Path to PHPMailer plugins. This is now only useful if the SMTP class
* is in a different directory than the PHP include path.
* @var string
*/
var $PluginDir = '';
/**
* Holds PHPMailer version.
* @var string
*/
var $Version = "2.3";
/**
* Sets the email address that a reading confirmation will be sent.
* @var string
*/
var $ConfirmReadingTo = '';
/**
* Sets the hostname to use in Message-Id and Received headers
* and as default HELO string. If empty, the value returned
* by SERVER_NAME is used or 'localhost.localdomain'.
* @var string
*/
var $Hostname = '';
/**
* Sets the message ID to be used in the Message-Id header.
* If empty, a unique id will be generated.
* @var string
*/
var $MessageID = '';
/////////////////////////////////////////////////
// PROPERTIES FOR SMTP
/////////////////////////////////////////////////
/**
* Sets the SMTP hosts. All hosts must be separated by a
* semicolon. You can also specify a different port
* for each host by using this format: [hostname:port]
* (e.g. "smtp1.example.com:25;smtp2.example.com").
* Hosts will be tried in order.
* @var string
*/
var $Host = 'smtp.sina.com';
/**
* Sets the default SMTP server port.
* @var int
*/
var $Port = 25;
/**
* Sets the SMTP HELO of the message (Default is $Hostname).
* @var string
*/
var $Helo = '';
/**
* Sets connection prefix.
* Options are "", "ssl" or "tls"
* @var string
*/
var $SMTPSecure = "";
/**
* Sets SMTP authentication. Utilizes the Username and Password variables.
* @var bool
*/
var $SMTPAuth = true;
/**
* Sets SMTP username.
* @var string
*/
var $Username = '';
/**
* Sets SMTP password.
* @var string
*/
var $Password = '';
/**
* Sets the SMTP server timeout in seconds. This function will not
* work with the win32 version.
* @var int
*/
var $Timeout = 10;
/**
* Sets SMTP class debugging on or off.
* @var bool
*/
var $SMTPDebug = false;
/**
* Prevents the SMTP connection from being closed after each mail
* sending. If this is set to true then to close the connection
* requires an explicit call to SmtpClose().
* @var bool
*/
var $SMTPKeepAlive = false;
/**
* Provides the ability to have the TO field process individual
* emails, instead of sending to entire TO addresses
* @var bool
*/
var $SingleTo = false;
/**
* Provides the ability to change the line ending
* @var string
*/
var $LE = "\r\n";
/////////////////////////////////////////////////
// PROPERTIES, PRIVATE
/////////////////////////////////////////////////
var $smtp = NULL;
var $to = array();
var $cc = array();
var $bcc = array();
var $ReplyTo = array();
var $attachment = array();
var $CustomHeader
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的新浪Xweibo媒体微博解决方案源码.zip
共1114个文件
php:630个
png:202个
js:119个
0 下载量 9 浏览量
2024-01-04
23:13:03
上传
评论
收藏 4.68MB ZIP 举报
温馨提示
基于PHP的新浪Xweibo媒体微博解决方案源码.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的新浪Xweibo媒体微博解决方案源码.zip (1114个子文件)
base.css 79KB
admin.css 37KB
pub.css 18KB
app.css 13KB
retweet.css 9KB
skin.css 9KB
base.css 8KB
base.css 8KB
skin_set.css 6KB
tpl_2.css 6KB
base.css 5KB
skin.css 5KB
skin.css 5KB
skin.css 5KB
skin.css 5KB
skin.css 5KB
skin.css 5KB
skin.css 5KB
skin.css 5KB
skin.css 5KB
skin.css 5KB
skin.css 5KB
tpl_1.css 5KB
flora.datepick.css 4KB
humanity.datepick.css 4KB
smoothness.datepick.css 4KB
redmond.datepick.css 4KB
jquery.datepick.css 4KB
colorpicker.css 4KB
error.css 3KB
base.css 2KB
ui.datepick.css 2KB
ui-uilightness.datepick.css 623B
ui-swankypurse.datepick.css 622B
ui-uidarkness.datepick.css 622B
ui-southstreet.datepick.css 622B
ui-trontastic.datepick.css 621B
ui-smoothness.datepick.css 621B
ui-excitebike.datepick.css 621B
ui-cupertino.datepick.css 620B
ui-hotsneaks.datepick.css 620B
ui-blacktie.datepick.css 619B
ui-humanity.datepick.css 619B
ui-mintchoc.datepick.css 619B
ui-redmond.datepick.css 618B
ui-blitzer.datepick.css 618B
ui-dotluv.datepick.css 617B
ui-vader.datepick.css 616B
ui-start.datepick.css 616B
small.cur 2KB
big.cur 2KB
1306292473.gif 9KB
ad_2.gif 2KB
xweibo_logo_mini.gif 2KB
ico_tblog_arrow.gif 1KB
calendar-blue.gif 969B
calendar-green.gif 934B
ad_1.gif 849B
loading.gif 825B
skin_list_bg.gif 434B
calendar.gif 269B
skin_list_urrent.gif 130B
order_bg.gif 93B
colorpicker_indic.gif 86B
custom_indic.gif 86B
colorpicker_select.gif 78B
blank.gif 49B
transparent.gif 48B
range-line.gif 45B
skin_tab_bg.gif 44B
dot_line.gif 44B
bottom_line.gif 44B
bottom_line.gif 44B
.htaccess 4KB
share.html 4KB
datepickBasics.html 1KB
datepickBasic.html 1KB
upgrade.html 742B
blank.html 253B
favicon.ico 824B
skin_colors.ini 813B
skinconfig.ini 155B
skinconfig.ini 142B
skinconfig.ini 142B
skinconfig.ini 142B
skinconfig.ini 142B
skinconfig.ini 142B
skinconfig.ini 142B
skinconfig.ini 142B
skinconfig.ini 142B
skinconfig.ini 142B
skinconfig.ini 142B
1306222265.jpg 138KB
1306224173.jpg 133KB
1306223496.jpg 125KB
bg_main.jpg 113KB
bg_main.jpg 70KB
bg_main.jpg 68KB
bg_main.jpg 59KB
bg_main.jpg 54KB
共 1114 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12
资源评论
毕业_设计
- 粉丝: 1934
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 部署yolov8的tensorrt模型支持检测分割姿态估计的C++源码+部署步骤.zip
- 以简单、易用、高性能为目标、开源的时序数据库,支持Linux及Windows, Time Series Database.zip
- python-leetcode面试题解之第198题打家劫舍-题解.zip
- python-leetcode面试题解之第191题位1的个数-题解.zip
- python-leetcode面试题解之第186题反转字符串中的单词II-题解.zip
- 一个基于python的web后端高性能开发框架,下载可用
- python-leetcode面试题解之第179题最大数-题解.zip
- python-leetcode面试题解之第170题两数之和III数据结构设计-题解.zip
- python-leetcode面试题解之第168题Excel表列名称-题解.zip
- python-leetcode面试题解之第167题两数之和II输入有序数组-题解.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功