Changeset 57137
- Timestamp:
- 11/26/2023 07:25:50 PM (8 months ago)
- Location:
- trunk/src/wp-includes/PHPMailer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/PHPMailer/PHPMailer.php
r56484 r57137 359 359 360 360 /** 361 362 363 364 365 366 367 361 368 * An implementation of the PHPMailer OAuthTokenProvider interface. 362 369 * … … 751 758 * @var string 752 759 */ 753 const VERSION = '6. 8.1';760 const VERSION = '6..1'; 754 761 755 762 /** … … 1574 1581 //Validate From, Sender, and ConfirmReadingTo addresses 1575 1582 foreach (['From', 'Sender', 'ConfirmReadingTo'] as $address_kind) { 1583 1584 1585 1586 1576 1587 $this->{$address_kind} = trim($this->{$address_kind}); 1577 1588 if (empty($this->{$address_kind})) { … … 2001 2012 2002 2013 /** 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2003 2046 * Send mail via SMTP. 2004 2047 * Returns false if there is a bad MAIL FROM, RCPT, or DATA input. … … 2027 2070 } else { 2028 2071 $smtp_from = $this->Sender; 2072 2073 2074 2029 2075 } 2030 2076 if (!$this->smtp->mail($smtp_from)) { … … 2190 2236 //Automatically enable TLS encryption if: 2191 2237 //* it's not disabled 2238 2192 2239 //* we have openssl extension 2193 2240 //* we are not already using SSL 2194 2241 //* the server offers STARTTLS 2195 if ($this->SMTPAutoTLS && $sslext && 'ssl' !== $secure && $this->smtp->getServerExt('STARTTLS')) { 2242 if ( 2243 $this->SMTPAutoTLS && 2244 $this->Host !== 'localhost' && 2245 $sslext && 2246 $secure !== 'ssl' && 2247 $this->smtp->getServerExt('STARTTLS') 2248 ) { 2196 2249 $tls = true; 2197 2250 } … … 4051 4104 4052 4105 /** 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4053 4179 * Add an error message to the error container. 4054 4180 * -
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..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 203 204 205 206 207 208 209 210 199 211 ]; 200 212 … … 973 985 974 986 /** 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 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.