<?php
////////////////////////////////////////////////////
// phpmailer - PHP email class
//
// Version 1.60, Created 03/30/2002
//
// Class for sending email using either
// sendmail, PHP mail(), or SMTP. Methods are
// based upon the standard AspEmail(tm) classes.
//
// Author: Brent R. Matzelle <bmatzelle@yahoo.com>
//
// License: LGPL, see LICENSE
////////////////////////////////////////////////////
/**
* phpmailer - PHP email transport class
* @author Brent R. Matzelle
*/
class phpmailer
{
/////////////////////////////////////////////////
// PUBLIC VARIABLES
/////////////////////////////////////////////////
/**
* Email priority (1 = High, 3 = Normal, 5 = low). Default value is 3.
* @public
* @type int
*/
var $Priority = 3;
/**
* Sets the CharSet of the message. Default value is "iso-8859-1".
* @public
* @type string
*/
var $CharSet = "iso-8859-1";
/**
* Sets the Content-type of the message. Default value is "text/plain".
* @public
* @type string
*/
var $ContentType = "text/plain";
/**
* Sets the Encoding of the message. Options for this are "8bit" (default),
* "7bit", "binary", "base64", and "quoted-printable".
* @public
* @type string
*/
var $Encoding = "8bit";
/**
* Holds the most recent mailer error message. Default value is "".
* @public
* @type string
*/
var $ErrorInfo = "";
/**
* Sets the From email address for the message. Default value is "root@localhost".
* @public
* @type string
*/
var $From = "root@localhost";
/**
* Sets the From name of the message. Default value is "Root User".
* @public
* @type string
*/
var $FromName = "Root User";
/**
* Sets the Sender email of the message. If not empty, will be sent via -f to sendmail
* or as 'MAIL FROM' in smtp mode. Default value is "".
* @public
* @type string
*/
var $Sender = "";
/**
* Sets the Subject of the message. Default value is "".
* @public
* @type string
*/
var $Subject = "";
/**
* Sets the Body of the message. This can be either an HTML or text body.
* If HTML then run IsHTML(true). Default value is "".
* @public
* @type 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.
* Default value is "".
* @public
* @type string
*/
var $AltBody = "";
/**
* Sets word wrapping on the body of the message to a given number of
* characters. Default value is 0 (off).
* @public
* @type int
*/
var $WordWrap = 0;
/**
* Method to send mail: ("mail", "sendmail", or "smtp").
* Default value is "mail".
* @public
* @type string
*/
var $Mailer = "mail";
/**
* Sets the path of the sendmail program. Default value is
* "/usr/sbin/sendmail".
* @public
* @type string
*/
var $Sendmail = "/usr/sbin/sendmail";
/**
* Turns Microsoft mail client headers on and off. Useful mostly
* for older clients. Default value is false (off).
* @public
* @type bool
*/
var $UseMSMailHeaders = false;
/**
* Path to phpmailer plugins. This is now only useful if the SMTP class
* is in a different directory than the PHP include path.
* Default is empty ("").
* @public
* @type string
*/
var $PluginDir = "";
/**
* Holds phpmailer version.
* @public
* @type string
*/
var $Version = "1.54";
/**
* Sets the email address that a reading confirmation will be sent. Default value is "".
* @public
* @type string
*/
var $ConfirmReadingTo = "";
/**
* Sets the line endings of the message. Default is "\n";
* @public
* @type string
*/
var $LE = "\n";
/////////////////////////////////////////////////
// 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.domain.com:25;smtp2.domain.com").
* Hosts will be tried in order.
* Default value is "localhost".
* @public
* @type string
*/
var $Host = "localhost";
/**
* Sets the default SMTP server port. Default value is 25.
* @public
* @type int
*/
var $Port = 25;
/**
* Sets the SMTP HELO of the message.
* Default value is "localhost.localdomain".
* @public
* @type string
*/
var $Helo = "localhost.localdomain";
/**
* Sets SMTP authentication. Utilizes the Username and Password variables.
* Default value is false (off).
* @public
* @type bool
*/
var $SMTPAuth = false;
/**
* Sets SMTP username. Default value is "".
* @public
* @type string
*/
var $Username = "";
/**
* Sets SMTP password. Default value is "".
* @public
* @type string
*/
var $Password = "";
/**
* Sets the SMTP server timeout in seconds. This function will not
* work with the win32 version. Default value is 10.
* @public
* @type int
*/
var $Timeout = 10;
/**
* Sets SMTP class debugging on or off. Default value is false (off).
* @public
* @type bool
*/
var $SMTPDebug = false;
/////////////////////////////////////////////////
// PRIVATE VARIABLES
/////////////////////////////////////////////////
/**
* Holds all "To" addresses.
* @type array
*/
var $to = array();
/**
* Holds all "CC" addresses.
* @type array
*/
var $cc = array();
/**
* Holds all "BCC" addresses.
* @type array
*/
var $bcc = array();
/**
* Holds all "Reply-To" addresses.
* @type array
*/
var $ReplyTo = array();
/**
* Holds all string and binary attachments.
* @type array
*/
var $attachment = array();
/**
* Holds all custom headers.
* @type array
*/
var $CustomHeader = array();
/**
* Holds the type of the message.
* @type string
*/
var $message_type = "";
/**
* Holds the message boundaries.
* @type string array
*/
var $boundary = array();
/////////////////////////////////////////////////
// VARIABLE METHODS
/////////////////////////////////////////////////
/**
* Sets message type to HTML. Returns void.
* @public
* @returns void
*/
function IsHTML($bool) {
if($bool == true)
$this->ContentType = "text/html";
else
$this->ContentType = "text/plain";
}
/**
* Sets Mailer to send message using SMTP.
* Returns void.
* @public
* @returns void
*/
function IsSMTP() {
$this->Mailer = "smtp";
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
PHP仿土巴兔装修门户源码 (962个子文件)
zhaobiao_index.css 21KB
index.css 20KB
525j11other.css 14KB
525j11other(1).css 14KB
default.css 14KB
1108head.css 13KB
Edittemplate.css 13KB
public.css 10KB
css.css 10KB
public.css 9KB
public(备份).css 9KB
525jpublic.css 8KB
t_called.css 8KB
fox.css 7KB
zhaobiao_baozhang.css 6KB
manage.css 6KB
css.css 6KB
css.css 4KB
css.css 4KB
css.css 4KB
css.css 4KB
skin.css 4KB
css1009foot.css 2KB
css.css 2KB
css.css 2KB
index.css 2KB
users.css 2KB
css.css 2KB
css.css 2KB
css.css 2KB
css.css 2KB
css.css 1KB
css.css 892B
editor.css 771B
css.css 650B
pagelist.css 411B
QQWry.Dat 8.74MB
Thumbs.db 305KB
Thumbs.db 139KB
Thumbs.db 54KB
Thumbs.db 49KB
Thumbs.db 36KB
Thumbs.db 28KB
Thumbs.db 28KB
Thumbs.db 14KB
1.gif 204KB
222.gif 109KB
0.gif 90KB
company_new_14.gif 44KB
bbs_1.gif 42KB
2.gif 41KB
qq.gif 35KB
baojia_bg.gif 24KB
kuaisu_price_bg.gif 21KB
login-content-bg.gif 20KB
zb2.gif 19KB
zb2.gif 19KB
goodcase1.gif 18KB
ibg1.gif 17KB
zb_n3.gif 17KB
3.gif 15KB
3.gif 15KB
2.gif 14KB
1.gif 13KB
35.gif 13KB
42.gif 13KB
22.gif 13KB
top2.gif 12KB
company_new_12.gif 11KB
logo.gif 11KB
company_new_5.gif 11KB
11.gif 10KB
40.gif 10KB
i_p2.gif 9KB
zb-index-r-s.gif 9KB
3.gif 9KB
login-wel.gif 9KB
18.gif 8KB
19.gif 8KB
11.gif 8KB
default.gif 8KB
s1.gif 8KB
s4.gif 8KB
s2.gif 8KB
logo.gif 7KB
baojia_button.gif 7KB
s3.gif 7KB
i_i3.gif 7KB
32.gif 7KB
33333333.gif 6KB
company_new_18.gif 6KB
49.gif 6KB
imageloading.gif 6KB
29.gif 6KB
unone.gif 5KB
97.gif 5KB
65.gif 5KB
1111.gif 5KB
31.gif 5KB
46.gif 5KB
共 962 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
a33124092
- 粉丝: 1
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页