<?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.71";
/**
* 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";
/**#@-*/
//CHECKS THE SETTINGS IN THE DATABASE TO SETUP A MAILING PROPERLY AUTOMATICALLY
function mailSettings($a) {
if($a['smtp']==True) {
$this->IsSMTP(True);
$this->Host = $a['smtphost']; // SMTP server
if($a['smtpauth']==True) {
$this->SMTPAuth = True;
$this->Username = $a['smtpuser'];
$this->Password = $a['smtppass'];
}
}
if($a['php']==True) {
$this->IsSMTP(False);
}
if($a['ishtml']==True) {
$this->IsHTML(true);
} else {
$this->IsHTML(false);
}
return True;
}
/////////////////////////////////////////////////
// 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($addres
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP实现的PHPDug v1.4.2 多国语言版_phpdug_博客论坛(源代码+html).zip
共543个文件
gif:230个
php:132个
htm:85个
0 下载量 45 浏览量
2024-04-29
02:01:30
上传
评论
收藏 989KB ZIP 举报
温馨提示
【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。【附加价值】:项目具有较高的学习借鉴价值,也可直接拿来修改复刻。对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。【沟通交流】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。鼓励下载和使用,并欢迎大家互相学习,共同进步。
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP实现的PHPDug v1.4.2 多国语言版_phpdug_博客论坛(源代码+html).zip (543个子文件)
theme.css 8KB
style.css 2KB
style.css 1KB
editor.css 592B
Thumbs.db 7KB
sshot.gif 14KB
dpanel_cron.gif 4KB
plesk_cron.gif 4KB
flag_persian.gif 3KB
flag_arabic.gif 3KB
flag_en.gif 3KB
img.gif 3KB
img.gif 3KB
flag_port.gif 3KB
btnParagraph.gif 2KB
btnFontName.gif 2KB
btnPasteWord.gif 2KB
btnRemoveFormat.gif 2KB
btnPaste.gif 2KB
btnPreview.gif 2KB
btnBackColor.gif 2KB
btnImage.gif 2KB
btnPasteWord.gif 2KB
btnContentBlock.gif 2KB
btnRemoveFormat.gif 2KB
btnPaste.gif 2KB
btnPasteText.gif 2KB
btnPreview.gif 2KB
btnStyleSelect.gif 2KB
btnBackColor.gif 2KB
btnSave.gif 2KB
btnFlash.gif 2KB
btnFullScreen.gif 2KB
btnImage.gif 2KB
btnPasteText.gif 2KB
btnFontSize.gif 2KB
btnForm.gif 2KB
btnTableEdit.gif 2KB
btnStyle.gif 2KB
btnTable.gif 2KB
btnCustomTag.gif 2KB
btnStyleSelect.gif 2KB
logo.gif 2KB
btnSave.gif 2KB
btnFlash.gif 2KB
btnFullScreen.gif 2KB
btnCopy.gif 2KB
btnRedo.gif 2KB
btnUndo.gif 2KB
btnMedia.gif 2KB
btnSearch.gif 2KB
btnInternalLink.gif 2KB
flag_spanish.gif 2KB
btnPrint.gif 2KB
btnStyle.gif 2KB
btnTableEdit.gif 2KB
btnTable.gif 2KB
btnRedo.gif 2KB
btnUndo.gif 2KB
btnClean.gif 2KB
btnCopy.gif 2KB
btnCut.gif 2KB
btnMedia.gif 2KB
btnRTL.gif 2KB
btnForeColor.gif 2KB
btnCustomObject.gif 2KB
btnLTR.gif 2KB
btnAbsolute.gif 2KB
btnCut.gif 2KB
btnParagraph.gif 2KB
btnSpellCheck.gif 2KB
btnCustom5.gif 2KB
btnFontName.gif 2KB
btnHyperlink.gif 2KB
btnNumber.gif 2KB
btnCustom3.gif 2KB
btnCustom2.gif 2KB
btnCustom4.gif 2KB
btnCustom1.gif 2KB
btnGuideline.gif 2KB
btnCustom7.gif 2KB
btnCustom6.gif 2KB
btnDelete.gif 2KB
btnStrikethrough.gif 2KB
btnIndent.gif 2KB
btnSubscript.gif 2KB
btnBold.gif 2KB
btnUnderline.gif 2KB
btnBookmark.gif 2KB
btnSource.gif 2KB
btnSymbol.gif 2KB
btnSuperscript.gif 2KB
btnLeft.gif 2KB
btnList.gif 2KB
btnOutdent.gif 2KB
btnCenter.gif 2KB
btnFull.gif 2KB
btnItalic.gif 2KB
btnRight.gif 2KB
btnLine.gif 2KB
共 543 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
小肥羊k
- 粉丝: 1996
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功