<?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 = 'xtalk_service@sina.com';
/**
* 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
没有合适的资源?快使用搜索试试~ 我知道了~
Xweibo_v2.1.zip
共1192个文件
php:663个
png:228个
js:124个
5星 · 超过95%的资源 需积分: 9 14 下载量 20 浏览量
2012-11-30
14:39:35
上传
评论 1
收藏 4.5MB ZIP 举报
温馨提示
Xweibo是基于新浪微博开放API开发免费开源的微博程序。网站运营方只需要下载Xweibo安装文件,按照安装向导在服务器完成安装即可获得一个完整的微博平台。微博平台包括微博内容接收、发送、评论、关注、私信等常用功能,并可以进行功能和界面定制。 微博开放平台是一个基于新浪微博客系统的开放的信息订阅、分享与交流平台。微博开放平台为您提供了海量的微博信息、粉丝关系、以及随时随地发生的信息裂变式传播渠道。可以登录平台并创建应用,使用微博平台提供的接口,创建有趣的应用或者让您的网站具有更强的社交特性。
资源推荐
资源详情
资源评论
收起资源包目录
Xweibo_v2.1.zip (1192个子文件)
base.css 75KB
admin.css 35KB
pub.css 17KB
app.css 14KB
skin.css 9KB
base.css 8KB
base.css 8KB
retweet.css 8KB
base.css 8KB
tpl_2.css 7KB
skin_set.css 6KB
base.css 5KB
skin.css 5KB
not_login_index.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
skin.css 4KB
flora.datepick.css 4KB
humanity.datepick.css 4KB
smoothness.datepick.css 4KB
redmond.datepick.css 4KB
jquery.datepick.css 4KB
colorpicker.css 4KB
zh_tw.css 3KB
base.css 2KB
ui.datepick.css 2KB
error.css 1KB
skin_zh_tw.css 1KB
retweet_zh_tw.css 1KB
skin_zh_tw.css 909B
skin_zh_cn.css 906B
skin_zh_tw.css 798B
skin_zh_tw.css 797B
skin_zh_tw.css 796B
skin_zh_tw.css 794B
skin_zh_tw.css 794B
skin_zh_tw.css 792B
skin_zh_tw.css 792B
skin_zh_tw.css 791B
skin_zh_tw.css 791B
skin_zh_tw.css 791B
skin_zh_tw.css 791B
ui-uilightness.datepick.css 623B
ui-swankypurse.datepick.css 622B
ui-southstreet.datepick.css 622B
ui-uidarkness.datepick.css 622B
ui-excitebike.datepick.css 621B
ui-trontastic.datepick.css 621B
ui-smoothness.datepick.css 621B
ui-hotsneaks.datepick.css 620B
ui-cupertino.datepick.css 620B
ui-mintchoc.datepick.css 619B
ui-blacktie.datepick.css 619B
ui-humanity.datepick.css 619B
ui-blitzer.datepick.css 618B
ui-redmond.datepick.css 618B
ui-dotluv.datepick.css 617B
ui-start.datepick.css 616B
ui-vader.datepick.css 616B
big.cur 2KB
small.cur 2KB
xweibo_logo_mini.gif 2KB
ico_tblog_arrow.gif 1KB
calendar-blue.gif 969B
calendar-green.gif 934B
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
bottom_line.gif 44B
dot_line.gif 44B
skin_tab_bg.gif 44B
bottom_line.gif 44B
.htaccess 4KB
share.html 4KB
db_move.html 2KB
datepickBasics.html 1KB
datepickBasic.html 1KB
upgrade.html 742B
blank.html 253B
favicon.ico 3KB
skin_colors.ini 813B
skinconfig.ini 155B
skinconfig.ini 142B
skinconfig.ini 142B
共 1192 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12
资源评论
- zf123_good2013-05-28对呀对呀,SAE不支持了,我正需要,必须从这下载呀
- suob714_s2013-05-14挺好的 SAE不支持了 只能从这儿下载了
- fangzefeng_9112014-03-07代码一般,可以在新浪上面下载到
- adamstorm2013-08-07很不错的软件,SAE不支持了,现在天天用
mesonxiao
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功