<?php
////////////////////////////////////////////////////
// PHPMailer - PHP email class
//
// Class for sending email using either
// sendmail, PHP mail(), or SMTP. Methods are
// based upon the standard AspEmail(tm) classes.
//
// Copyright (C) 2001 - 2003 Brent R. Matzelle
//
// License: LGPL, see LICENSE
////////////////////////////////////////////////////
/**
* PHPMailer - PHP email transport class
* @package PHPMailer
* @author Brent R. Matzelle
* @copyright 2001 - 2003 Brent R. Matzelle
*/
class PHPMailer
{
/////////////////////////////////////////////////
// PUBLIC VARIABLES
/////////////////////////////////////////////////
/**
* 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 = "1.72";
/**
* 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 = "";
/////////////////////////////////////////////////
// SMTP VARIABLES
/////////////////////////////////////////////////
/**
* 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 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;
/**#@+
* @access 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";
/**#@-*/
/////////////////////////////////////////////////
// VARIABLE METHODS
/////////////////////////////////////////////////
/**
* 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 = "mail";
}
/**
* Sets Mailer to send message using the $Sendmail program.
* @return void
*/
function IsSendmail() {
$this->Mailer = "sendmail";
}
/**
* Sets Mailer to send message using the qmail MTA.
* @return void
*/
function IsQmail() {
$this->Sendmail = "/var/qmail/bin/sendmail";
$this->Mailer = "sendmail";
}
/////////////////////////////////////////////////
// RECIPIENT METHODS
/////////////////////////////////////////////////
/**
* Adds a "To" address.
* @param string $address
* @param string $name
* @return void
*/
function AddAddress($address, $name = "") {
$cur = count($this->to);
$this->to[$cur][0] = trim($address);
$this->to[$cur][1] = $name;
}
/**
* Adds a "Cc" address. Note: this function works
* with the SMTP mailer on win32, not with the "mail"
* mailer.
* @param string $address
* @param string $name
* @return void
*/
function AddCC($address, $name = "") {
$cur = count($this->cc);
$this->cc[$cur][0] = trim($address);
$this->cc[$cur][1] = $name;
}
/**
* Adds a "Bcc" address. Note: this function works
* with the SMTP mailer on win32, not with the "mail"
没有合适的资源?快使用搜索试试~ 我知道了~
PHP实例开发源码—KisTracker.zip
共126个文件
php:73个
gif:28个
png:18个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 86 浏览量
2022-11-11
23:02:28
上传
评论
收藏 447KB ZIP 举报
温馨提示
PHP实例开发源码—KisTracker.zip
资源推荐
资源详情
资源评论
收起资源包目录
PHP实例开发源码—KisTracker.zip (126个子文件)
global.php.bak 2KB
Common.css 3KB
0949450.gif 16KB
xls.gif 739B
ppt.gif 712B
jscalendar.gif 221B
b_ok.gif 215B
zip.gif 179B
htm.gif 179B
pg_last.gif 168B
pg_first.gif 168B
pdf.gif 163B
pic.gif 153B
jpg.gif 153B
pg_next.gif 143B
pg_prev.gif 138B
pg_down.GIF 138B
unknow.gif 137B
audio.gif 137B
mdb.gif 135B
pg_up.GIF 135B
doc.gif 128B
chm.gif 122B
hlp.gif 122B
code.gif 120B
txt.gif 116B
mp.gif 115B
rm.gif 107B
exe.gif 106B
flow.gif 99B
1720310.jpg 103KB
1722370.jpg 103KB
1722160.jpg 103KB
utile.js 16KB
script.js 5KB
class.phpmailer.php 46KB
class.smtp.php 34KB
install.php 16KB
class.stat.php 14KB
webfunction.php 13KB
class.flow.php 13KB
newissure.php 8KB
class.action.cfg_project.php 8KB
class.issure.php 8KB
class.daemon.php 7KB
class.action.cfg_issure.php 7KB
class.isulist.php 7KB
cfgflow.php 6KB
functions.php 5KB
class.project.php 5KB
isuedit.php 4KB
isufind.php 4KB
myissure.php 4KB
class.user.php 4KB
cfgsysparam.php 3KB
class.role.php 3KB
isudetail.php 3KB
isuprocess.php 3KB
cfgpri.php 3KB
cfgsever.php 3KB
cfgtype.php 3KB
cfgmod.php 3KB
class.flow.working.php 3KB
class.action.cfg_sysparam.php 3KB
cfggroup.php 3KB
class.dept.php 3KB
myinfo.php 2KB
cfgprjinfo.php 2KB
class.action.cfg_flow.php 2KB
cfguser.php 2KB
cfgmember.php 2KB
global.php 2KB
cfgproject.php 2KB
class.action.cfg_workstate.php 2KB
class.action.cfg_group.php 2KB
class.action.cfg_role.php 2KB
newproject.php 2KB
top.php 2KB
class.action.cfg_user.php 2KB
login.php 2KB
class.executor.php 2KB
class.action.cfg_state.php 1KB
class.mysql.php 1KB
cfgrole.php 1KB
class.action.cfg_dept.php 1KB
cfgdept.php 1KB
class.grade.php 1012B
config.php 1006B
about.php 859B
indexissure.php 712B
stat.php 689B
index.php 658B
isutran.php 648B
listproject.php 615B
accounts.php 595B
isuinfo.php 560B
isulog.php 469B
class.action.cfg_myinfo.php 457B
delflowerr.php 450B
delprojecterr.php 448B
共 126 条
- 1
- 2
资源评论
毕业_设计
- 粉丝: 1935
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功