<?php
/*~ class.phpmailer.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.0.4 |
| 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
* @package PHPMailer
* @author Andy Prevost
* @copyright 2004 - 2009 Andy Prevost
*/
class PHPMailer {
/////////////////////////////////////////////////
// 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 = 'iso-8859-1';
/**
* 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 = 'root@localhost';
/**
* 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 = 'mail';
/**
* 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.0.4";
/**
* 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 = 'localhost';
/**
* 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 = false;
/**
* 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;
/////////////////////////////////////////////////
// PROPERTIES, PRIVATE
/////////////////////////////////////////////////
var $smtp = NULL;
var $to = array();
var $cc = array();
var $bcc = array();
var $ReplyTo = array();
var $attachment = array();
var $CustomHeader = array();
var $message_type = '';
var $boundary = array();
var $language = array();
var $error_count = 0;
var $LE = "\n";
var $sign_cert_file = "";
var $sign_key_file = "";
var $sign_key_pass = "";
/////////////////////////////////////////////////
// METHODS, VARIABLES
/////////////////////////////////////////////////
/**
* Sets message type to HTML.
* @param bool $bool
* @return void
*/
function IsHTML($bool) {
if($bool == true) {
$this->ContentType = 'text/html';
} else {
$this->ContentType = 'text/plain';
}
}
/**
* Sets Mailer to send message using SMTP.
* @return void
*/
function IsSMTP() {
$this->Mailer = 'smtp';
}
/**
* Sets Mailer to send message using PHP mail() function.
* @return void
*/
function IsMail() {
$this->Mailer = 'm
没有合适的资源?快使用搜索试试~ 我知道了~
LazyCMS(内容管理系统) 2.0 Alpha.7z
共216个文件
gif:77个
php:51个
png:21个
0 下载量 91 浏览量
2023-03-15
08:11:00
上传
评论
收藏 510KB 7Z 举报
温馨提示
LazyCMS(内容管理系统) 2.0 Alpha.7z
资源推荐
资源详情
资源评论
收起资源包目录
LazyCMS(内容管理系统) 2.0 Alpha.7z (216个子文件)
style.css 13KB
admin.css 12KB
icons.css 11KB
ui.css 9KB
style.css 6KB
reset.css 5KB
common.css 5KB
cpanel.css 3KB
model.css 3KB
install.css 3KB
post.css 2KB
login.css 2KB
xheditor.plugins.css 2KB
comment.css 2KB
publish.css 2KB
iframe.css 2KB
zh-CN.css 1KB
options.css 1KB
multiupload.css 1KB
user.css 1KB
.htaccess.dist 250B
header-bg.gif 14KB
crazy.gif 8KB
angry.gif 8KB
download-bg.gif 7KB
doubt.gif 7KB
feature-bg.gif 7KB
wronged.gif 6KB
icons.gif 5KB
curse.gif 5KB
sleep.gif 5KB
bg-line.gif 5KB
free.gif 4KB
quiet.gif 4KB
agile.gif 4KB
panic.gif 4KB
ohmy.gif 4KB
shutup.gif 4KB
awkward.gif 4KB
shy.gif 3KB
brevity.gif 3KB
wail.gif 3KB
fastcry.gif 3KB
cute.gif 2KB
tongue.gif 2KB
proud.gif 2KB
cry.gif 2KB
smile.gif 2KB
titter.gif 2KB
envy.gif 2KB
bye.gif 2KB
struggle.gif 2KB
despise.gif 2KB
laugh.gif 2KB
knock.gif 2KB
sad.gif 2KB
loading.gif 2KB
loading.gif 2KB
loading.gif 1KB
mad.gif 1KB
footer.gif 1KB
add.gif 1KB
bg1.gif 856B
bg2.gif 816B
invalid-line.gif 815B
map.gif 782B
map.gif 640B
clear.gif 638B
flv.gif 626B
waiting.gif 597B
icon.gif 580B
guide.gif 520B
header-icon-bg.gif 431B
btnbg.gif 416B
wmp.gif 415B
bubble_bg.gif 395B
menu-arrows.gif 330B
pagebreak.gif 325B
flash.gif 241B
start.gif 239B
btnbgr.gif 206B
break.gif 138B
close.gif 128B
tag-address.gif 108B
progressbg.gif 103B
progress.gif 94B
progressbg.gif 93B
tag-pre.gif 90B
tag-div.gif 89B
tag-h2.gif 86B
tag-h5.gif 86B
tag-h4.gif 86B
tag-h6.gif 86B
tag-h3.gif 86B
tag-h1.gif 84B
tag-p.gif 80B
title.gif 48B
blank.gif 43B
home.html 4KB
multiupload.html 4KB
共 216 条
- 1
- 2
- 3
资源评论
BryanDing
- 粉丝: 299
- 资源: 5584
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功