<?php
/**
* PHPMailer - PHP email creation and transport class.
* PHP Version 5.5.
*
* @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
*
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
* @author Brent R. Matzelle (original founder)
* @copyright 2012 - 2017 Marcus Bointon
* @copyright 2010 - 2012 Jim Jagielski
* @copyright 2004 - 2009 Andy Prevost
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
* @note 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.
*/
namespace vae\PHPMailer\PHPMailer;
/**
* PHPMailer - PHP email creation and transport class.
*
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
* @author Brent R. Matzelle (original founder)
*/
class PHPMailer
{
const CHARSET_ISO88591 = 'iso-8859-1';
const CHARSET_UTF8 = 'utf-8';
const CONTENT_TYPE_PLAINTEXT = 'text/plain';
const CONTENT_TYPE_TEXT_CALENDAR = 'text/calendar';
const CONTENT_TYPE_TEXT_HTML = 'text/html';
const CONTENT_TYPE_MULTIPART_ALTERNATIVE = 'multipart/alternative';
const CONTENT_TYPE_MULTIPART_MIXED = 'multipart/mixed';
const CONTENT_TYPE_MULTIPART_RELATED = 'multipart/related';
const ENCODING_7BIT = '7bit';
const ENCODING_8BIT = '8bit';
const ENCODING_BASE64 = 'base64';
const ENCODING_BINARY = 'binary';
const ENCODING_QUOTED_PRINTABLE = 'quoted-printable';
/**
* Email priority.
* Options: null (default), 1 = High, 3 = Normal, 5 = low.
* When null, the header is not set at all.
*
* @var int
*/
public $Priority;
/**
* The character set of the message.
*
* @var string
*/
public $CharSet = self::CHARSET_ISO88591;
/**
* The MIME Content-type of the message.
*
* @var string
*/
public $ContentType = self::CONTENT_TYPE_PLAINTEXT;
/**
* The message encoding.
* Options: "8bit", "7bit", "binary", "base64", and "quoted-printable".
*
* @var string
*/
public $Encoding = self::ENCODING_8BIT;
/**
* Holds the most recent mailer error message.
*
* @var string
*/
public $ErrorInfo = '';
/**
* The From email address for the message.
*
* @var string
*/
public $From = 'root@localhost';
/**
* The From name of the message.
*
* @var string
*/
public $FromName = 'Root User';
/**
* The envelope sender of the message.
* This will usually be turned into a Return-Path header by the receiver,
* and is the address that bounces will be sent to.
* If not empty, will be passed via `-f` to sendmail or as the 'MAIL FROM' value over SMTP.
*
* @var string
*/
public $Sender = '';
/**
* The Subject of the message.
*
* @var string
*/
public $Subject = '';
/**
* An HTML or plain text message body.
* If HTML then call isHTML(true).
*
* @var string
*/
public $Body = '';
/**
* The plain-text message body.
* This body can be read by mail clients that do not have HTML email
* capability such as mutt & Eudora.
* Clients that can read HTML will view the normal Body.
*
* @var string
*/
public $AltBody = '';
/**
* An iCal message part body.
* Only supported in simple alt or alt_inline message types
* To generate iCal event structures, use classes like EasyPeasyICS or iCalcreator.
*
* @see http://sprain.ch/blog/downloads/php-class-easypeasyics-create-ical-files-with-php/
* @see http://kigkonsult.se/iCalcreator/
*
* @var string
*/
public $Ical = '';
/**
* The complete compiled MIME message body.
*
* @var string
*/
protected $MIMEBody = '';
/**
* The complete compiled MIME message headers.
*
* @var string
*/
protected $MIMEHeader = '';
/**
* Extra headers that createHeader() doesn't fold in.
*
* @var string
*/
protected $mailHeader = '';
/**
* Word-wrap the message body to this number of chars.
* Set to 0 to not wrap. A useful value here is 78, for RFC2822 section 2.1.1 compliance.
*
* @see static::STD_LINE_LENGTH
*
* @var int
*/
public $WordWrap = 0;
/**
* Which method to use to send mail.
* Options: "mail", "sendmail", or "smtp".
*
* @var string
*/
public $Mailer = 'mail';
/**
* The path to the sendmail program.
*
* @var string
*/
public $Sendmail = '/usr/sbin/sendmail';
/**
* Whether mail() uses a fully sendmail-compatible MTA.
* One which supports sendmail's "-oi -f" options.
*
* @var bool
*/
public $UseSendmailOptions = true;
/**
* The email address that a reading confirmation should be sent to, also known as read receipt.
*
* @var string
*/
public $ConfirmReadingTo = '';
/**
* The hostname to use in the Message-ID header and as default HELO string.
* If empty, PHPMailer attempts to find one with, in order,
* $_SERVER['SERVER_NAME'], gethostname(), php_uname('n'), or the value
* 'localhost.localdomain'.
*
* @var string
*/
public $Hostname = '';
/**
* An ID to be used in the Message-ID header.
* If empty, a unique id will be generated.
* You can set your own, but it must be in the format "<id@domain>",
* as defined in RFC5322 section 3.6.4 or it will be ignored.
*
* @see https://tools.ietf.org/html/rfc5322#section-3.6.4
*
* @var string
*/
public $MessageID = '';
/**
* The message Date to be used in the Date header.
* If empty, the current date will be added.
*
* @var string
*/
public $MessageDate = '';
/**
* SMTP hosts.
* Either a single hostname or multiple semicolon-delimited hostnames.
* 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").
* You can also specify encryption type, for example:
* (e.g. "tls://smtp1.example.com:587;ssl://smtp2.example.com:465").
* Hosts will be tried in order.
*
* @var string
*/
public $Host = 'localhost';
/**
* The default SMTP server port.
*
* @var int
*/
public $Port = 25;
/**
* The SMTP HELO of the message.
* Default is $Hostname. If $Hostname is empty, PHPMailer attempts to find
* one with the same method described above for $Hostname.
*
* @see PHPMailer::$Hostname
*
* @var string
*/
public $Helo = '';
/**
* What kind of encryption to use on the SMTP connection.
* Options: '', 'ssl' or 'tls'.
*
* @var string
*/
public $SMTPSecure = '';
/**
* Whether to enable TLS encryption automatically if a server supports it,
* even if `SMTPSecure` is not set to 'tls'.
* Be aware that in PHP >= 5.6 this requires that the server's certificates are valid.
*
* @var bool
*/
public $SMTPAutoTLS = true;
/**
* Whether to use SMTP
![avatar](https://profile-avatar.csdnimg.cn/089b4b984880472ebad12b8b158c5a5b_unbelievevc.jpg!1)
智慧浩海
- 粉丝: 1w+
- 资源: 5474
最新资源
- Matlab魔术轮胎公式:轮胎动力学仿真研究,涵盖制动、转弯及联合工况,解析纵向力与滑动率、侧向力与侧偏角关系,附参考文献及代码仿真复现 ,Matlab魔术轮胎公式:轮胎动力学仿真研究,涵盖制动、转弯
- 纯电动汽车Simulink整车仿真模型:构建高效动力系统,探索未来驾驶体验,纯电动汽车Simulink整车仿真模型构建与性能分析,纯电动汽车(含增程式)的 Simulink 整车仿真模型 ,纯电动;
- 贝叶斯优化算法在PID参数自动调参中的应用:一阶至高阶控制系统的自适应解决方案(附详细注释的M文件),贝叶斯优化算法在PID参数自动调整中的应用:一阶至高阶控制系统的自适应调参方法及详细注释说明,贝叶
- 基于Matlab的2PSK调制与解调系统仿真:原理、实现与源文件详解说明文档,基于MATLAB的2PSK调制与解调系统仿真及其详细说明文档与仿真源文件研究分析,基于matlab的2PSK调制与解调系统
- 基于BP神经网络的复杂故障诊断在三相逆变器仿真复现中的应用研究,基于BP神经网络的智能三相逆变器故障诊断技术研究与仿真复现:深度探索与验证,基于BP神经网络的三相逆变器故障诊断研究,仿真复现 ,基于B
- 四轮独立线控转向系统与Carsim-Simulink联合仿真的研究与应用,四轮转向线控转向系统的Carsim与Simulink联合仿真研究与实践,四轮转向线控转向系统的carsim与simulink联
- 基于Matlab与Simulink的六自由度水下机器人滑模控制运动模型:无差度轨迹跟踪效果与S-function及Matlab function互换性应用与说明文档,基于Matlab与Simulink
- C#与Halcon运动控制及视觉框架源码联合,可自定义连线式运动控制,开源可二次开发视觉处理利器 ,C#结合Halcon视觉框架的运动控制源代码分享与二次开发指南,C#联合Halcon运动控制源代码
- COMSOL MXene超材料吸收器的性能研究:探索高效能量转换与吸收机制,COMSOL MXene超材料吸收器的性能研究:探索高效能量转换与吸收机制,comsol MXene超材料吸收器 ,com
- 船用柴油机Simulink动态模型:四缸CI发动机设计与仿真(带PID控制)参考文档,船用柴油机Simulink动态模型构建:四缸CI发动机PID控制详解与文献参考,船用柴油机Simulink动态模
- 基于SOGI二阶广义积分器和高频注入的PMSM无速度传感器控制策略研究-MATLAB/Simulink仿真及传统滤波方法对比,基于pmsm永磁同步电机的高频注入技术与sogi二阶广义积分器传统滤波在
- 基于C++和C语言的农村污水处理系统设计源码
- 基于HTML和CSS技术的大学学业作业仓库设计源码
- 基于COMSOL的三相变压器仿真:振动噪声、温度及多场耦合计算的综合性研究,基于COMSOL的三相变压器仿真:振动噪声、温度场及多物理场耦合计算的研究,COMSOL三相变压器仿真振动噪声温度 变压器磁
- 基于JavaScript技术的自有家用源建设二分队设计源码
- 基于Vue与Electron的跨平台可视化页面与流程设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)