📄 phpmailer.html
字号:
<BR> Adds a custom header.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> bool</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#AddEmbeddedImage(var, var, var, var, var)">AddEmbeddedImage</A></B>(var $path, var $cid, var $name, var $encoding, var $type)</CODE><BR> Adds an embedded attachment.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#AddReplyTo(var, var)">AddReplyTo</A></B>(var $address, var $name)</CODE><BR> Adds a "Reply-to" address.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#AddStringAttachment(var, var, var, var)">AddStringAttachment</A></B>(var $string, var $filename, var $encoding, var $type)</CODE><BR> Adds a string or binary attachment (non-filesystem) to the list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#ClearAddresses()">ClearAddresses</A></B>()</CODE><BR> Clears all recipients assigned in the TO array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#ClearAllRecipients()">ClearAllRecipients</A></B>()</CODE><BR> Clears all recipients assigned in the TO, CC and BCC array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#ClearAttachments()">ClearAttachments</A></B>()</CODE><BR> Clears all previously set filesystem, string, and binary attachments.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#ClearBCCs()">ClearBCCs</A></B>()</CODE><BR> Clears all recipients assigned in the BCC array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#ClearCCs()">ClearCCs</A></B>()</CODE><BR> Clears all recipients assigned in the CC array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#ClearCustomHeaders()">ClearCustomHeaders</A></B>()</CODE><BR> Clears all custom headers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#ClearReplyTos()">ClearReplyTos</A></B>()</CODE><BR> Clears all recipients assigned in the ReplyTo array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#IsHTML(var)">IsHTML</A></B>(var $bool)</CODE><BR> Sets message type to HTML.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#IsMail()">IsMail</A></B>()</CODE><BR> Sets Mailer to send message using PHP mail() function.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#IsQmail()">IsQmail</A></B>()</CODE><BR> Sets Mailer to send message using the qmail MTA.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#IsSendmail()">IsSendmail</A></B>()</CODE><BR> Sets Mailer to send message using the $Sendmail program.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#IsSMTP()">IsSMTP</A></B>()</CODE><BR> Sets Mailer to send message using SMTP.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> bool</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#Send()">Send</A></B>()</CODE><BR> Creates message and assigns Mailer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> string</CODE></FONT></TD><TD><CODE><B><A HREF="phpmailer.html#SendToQueue(var, var)">SendToQueue</A></B>(var $queue_path, var $send_time)</CODE><BR> Sends mail message to an assigned queue directory.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="$Priority"><!-- --></A><H3>$Priority</H3><PRE>public int <B>$Priority</B></PRE><DL><DD>Email priority (1 = High, 3 = Normal, 5 = low). Default value is 3.</DL><HR><A NAME="$CharSet"><!-- --></A><H3>$CharSet</H3><PRE>public string <B>$CharSet</B></PRE><DL><DD>Sets the CharSet of the message. Default value is "iso-8859-1".</DL><HR><A NAME="$ContentType"><!-- --></A><H3>$ContentType</H3><PRE>public string <B>$ContentType</B></PRE><DL><DD>Sets the Content-type of the message. Default value is "text/plain".</DL><HR><A NAME="$Encoding"><!-- --></A><H3>$Encoding</H3><PRE>public string <B>$Encoding</B></PRE><DL><DD>Sets the Encoding of the message. Options for this are "8bit" (default), "7bit", "binary", "base64", and "quoted-printable".</DL><HR><A NAME="$ErrorInfo"><!-- --></A><H3>$ErrorInfo</H3><PRE>public string <B>$ErrorInfo</B></PRE><DL><DD>Holds the most recent mailer error message. Default value is "".</DL><HR><A NAME="$From"><!-- --></A><H3>$From</H3><PRE>public string <B>$From</B></PRE><DL><DD>Sets the From email address for the message. Default value is "root@localhost".</DL><HR><A NAME="$FromName"><!-- --></A><H3>$FromName</H3><PRE>public string <B>$FromName</B></PRE><DL><DD>Sets the From name of the message. Default value is "Root User".</DL><HR><A NAME="$Sender"><!-- --></A><H3>$Sender</H3><PRE>public string <B>$Sender</B></PRE><DL><DD>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 "".</DL><HR><A NAME="$Subject"><!-- --></A><H3>$Subject</H3><PRE>public string <B>$Subject</B></PRE><DL><DD>Sets the Subject of the message. Default value is "".</DL><HR><A NAME="$Body"><!-- --></A><H3>$Body</H3><PRE>public string <B>$Body</B></PRE><DL><DD>Sets the Body of the message. This can be either an HTML or text body. If HTML then run IsHTML(true). Default value is "".</DL><HR><A NAME="$AltBody"><!-- --></A><H3>$AltBody</H3><PRE>public string <B>$AltBody</B></PRE><DL><DD>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 "".</DL><HR><A NAME="$WordWrap"><!-- --></A><H3>$WordWrap</H3><PRE>public int <B>$WordWrap</B></PRE><DL><DD>Sets word wrapping on the body of the message to a given number of characters. Default value is 0 (off).</DL><HR><A NAME="$Mailer"><!-- --></A><H3>$Mailer</H3><PRE>public string <B>$Mailer</B></PRE><DL><DD>Method to send mail: ("mail", "sendmail", or "smtp"). Default value is "mail".</DL><HR><A NAME="$Sendmail"><!-- --></A><H3>$Sendmail</H3><PRE>public string <B>$Sendmail</B></PRE><DL><DD>Sets the path of the sendmail program. Default value is "/usr/sbin/sendmail".</DL><HR><A NAME="$UseMSMailHeaders"><!-- --></A><H3>$UseMSMailHeaders</H3><PRE>public bool <B>$UseMSMailHeaders</B></PRE><DL><DD>Turns Microsoft mail client headers on and off. Useful mostly for older clients. Default value is false (off).</DL><HR><A NAME="$PluginDir"><!-- --></A><H3>$PluginDir</H3><PRE>public string <B>$PluginDir</B></PRE><DL><DD>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 ("").</DL><HR><A NAME="$Version"><!-- --></A><H3>$Version</H3><PRE>public string <B>$Version</B></PRE><DL><DD>Holds phpmailer version.</DL><HR><A NAME="$ConfirmReadingTo"><!-- --></A><H3>$ConfirmReadingTo</H3><PRE>public string <B>$ConfirmReadingTo</B></PRE><DL><DD>Sets the email address that a reading confirmation will be sent. Default value is "".</DL><HR><A NAME="$LE"><!-- --></A><H3>$LE</H3><PRE>public string <B>$LE</B></PRE><DL><DD>Sets the line endings of the message. Default is "\n";</DL><HR><A NAME="$Host"><!-- --></A><H3>$Host</H3><PRE>public string <B>$Host</B></PRE><DL><DD>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".</DL><HR><A NAME="$Port"><!-- --></A><H3>$Port</H3><PRE>public int <B>$Port</B></PRE><DL><DD>Sets the default SMTP server port. Default value is 25.</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -