Changeset 57137 for trunk/src/wp-includes/PHPMailer/SMTP.php
- Timestamp:
- 11/26/2023 07:25:50 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/PHPMailer/SMTP.php
r56484 r57137 36 36 * @var string 37 37 */ 38 const VERSION = '6. 8.1';38 const VERSION = '6.9.1'; 39 39 40 40 /** … … 197 197 'ZoneMTA' => '/[\d]{3} Message queued as (.*)/', 198 198 'Mailjet' => '/[\d]{3} OK queued as (.*)/', 199 ]; 200 201 /** 202 * Allowed SMTP XCLIENT attributes. 203 * Must be allowed by the SMTP server. EHLO response is not checked. 204 * 205 * @see https://www.postfix.org/XCLIENT_README.html 206 * 207 * @var array 208 */ 209 public static $xclient_allowed_attributes = [ 210 'NAME', 'ADDR', 'PORT', 'PROTO', 'HELO', 'LOGIN', 'DESTADDR', 'DESTPORT' 199 211 ]; 200 212 … … 973 985 974 986 /** 987 * Send SMTP XCLIENT command to server and check its return code. 988 * 989 * @return bool True on success 990 */ 991 public function xclient(array $vars) 992 { 993 $xclient_options = ""; 994 foreach ($vars as $key => $value) { 995 if (in_array($key, SMTP::$xclient_allowed_attributes)) { 996 $xclient_options .= " {$key}={$value}"; 997 } 998 } 999 if (!$xclient_options) { 1000 return true; 1001 } 1002 return $this->sendCommand('XCLIENT', 'XCLIENT' . $xclient_options, 250); 1003 } 1004 1005 /** 975 1006 * Send an SMTP RSET command. 976 1007 * Abort any transaction that is currently in progress.
Note: See TracChangeset
for help on using the changeset viewer.