Mail: In PHPMailer 5.2.7 the case of the Send()
method changed to send()
, update our call for consistency with the library.
Props michalzuber. Fixes #39469. git-svn-id: https://develop.svn.wordpress.org/trunk@39691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7cfb768da3
commit
bc231804a3
@ -478,7 +478,7 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
|
||||
|
||||
// Send!
|
||||
try {
|
||||
return $phpmailer->Send();
|
||||
return $phpmailer->send();
|
||||
} catch ( phpmailerException $e ) {
|
||||
|
||||
$mail_error_data = compact( 'to', 'subject', 'message', 'headers', 'attachments' );
|
||||
|
Loading…
Reference in New Issue
Block a user