Changeset 60623 for trunk/src/wp-includes/PHPMailer/SMTP.php
- Timestamp:
- 08/11/2025 04:16:19 PM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/PHPMailer/SMTP.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/PHPMailer/SMTP.php
r59481 r60623 36 36 * @var string 37 37 */ 38 const VERSION = '6. 9.3';38 const VERSION = '6.10.0'; 39 39 40 40 /** … … 159 159 */ 160 160 public $do_verp = false; 161 162 /** 163 * Whether to use SMTPUTF8. 164 * 165 * @see https://www.rfc-editor.org/rfc/rfc6531 166 * 167 * @var bool 168 */ 169 public $do_smtputf8 = false; 161 170 162 171 /** … … 914 923 * the mail transaction is started and then one or more recipient 915 924 * commands may be called followed by a data command. 916 * Implements RFC 821: MAIL <SP> FROM:<reverse-path> <CRLF>. 925 * Implements RFC 821: MAIL <SP> FROM:<reverse-path> <CRLF> and 926 * two extensions, namely XVERP and SMTPUTF8. 927 * 928 * The server's EHLO response is not checked. If use of either 929 * extensions is enabled even though the server does not support 930 * that, mail submission will fail. 931 * 932 * XVERP is documented at https://www.postfix.org/VERP_README.html 933 * and SMTPUTF8 is specified in RFC 6531. 917 934 * 918 935 * @param string $from Source address of this message … … 923 940 { 924 941 $useVerp = ($this->do_verp ? ' XVERP' : ''); 942 $useSmtputf8 = ($this->do_smtputf8 ? ' SMTPUTF8' : ''); 925 943 926 944 return $this->sendCommand( 927 945 'MAIL FROM', 928 'MAIL FROM:<' . $from . '>' . $use Verp,946 'MAIL FROM:<' . $from . '>' . $useSmtputf8 . $useVerp, 929 947 250 930 948 ); … … 1366 1384 1367 1385 /** 1386 * Enable or disable use of SMTPUTF8. 1387 * 1388 * @param bool $enabled 1389 */ 1390 public function setSMTPUTF8($enabled = false) 1391 { 1392 $this->do_smtputf8 = $enabled; 1393 } 1394 1395 /** 1396 * Get SMTPUTF8 use. 1397 * 1398 * @return bool 1399 */ 1400 public function getSMTPUTF8() 1401 { 1402 return $this->do_smtputf8; 1403 } 1404 1405 /** 1368 1406 * Set error messages and codes. 1369 1407 *
Note: See TracChangeset
for help on using the changeset viewer.