New PHP8.2 error (Swift Mailer 5)
Just checked and...
Swift Mailer will stop being maintained at the end of November 2021.
Please, move to Symfony Mailer at your earliest convenience. Symfony Mailer is the next evolution of Swift Mailer. It provides the same features with support for modern PHP code and support for third-party providers.
this is the current issue I am facing....
I have encountered an error with PHP8.2 and Swiftmailer
#7122 - E_DEPRECATED: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated /XXXXX/public_html/cmsb/3rdParty/SwiftMailer5/classes/Swift/Transport/Esmtp/AuthHandler.php (line 251)
Deprecated: Callables of the form ["Swift_Message", "Swift_Mime_SimpleMessage::__construct"] are deprecated in /XXXXXX/public_html/cmsb/3rdParty/SwiftMailer5/classes/Swift/Message.php on line 46 Deprecated: Callables of the form ["Swift_SmtpTransport", "Swift_Transport_EsmtpTransport::__construct"] are deprecated in /XXXXXX/public_html/cmsb/3rdParty/SwiftMailer5/classes/Swift/SmtpTransport.php on line 35 Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /XXXXXX/public_html/cmsb/3rdParty/SwiftMailer5/classes/Swift/Transport/EsmtpTransport.php on line 143 Warning: Cannot modify header information - headers already sent by (output started at /XXXXXX/public_html/cmsb/3rdParty/SwiftMailer5/classes/Swift/Message.php:46) in /XXXXXX/public_html/cmsb/lib/menus/header.php on line 4
Can you try the latest release and let me know if you find any other issues? Thanks!
I have been up against it.
I have done a clean install of the latest release of CMSB 3_58_build2316 On PHP 8.2,
Added email credentials to "Email Settings" in CMSB and performed a Password Reset.
I can confirm that no errors were reported and everything works perfectly!
Thanks again Dave
I have this alert with PHP 8.2 (v3.58 (Build 2316) :
Callables of the form ["Swift_MailTransport", "Swift_Transport_MailTransport::__construct"] are deprecated
.../3rdParty/SwiftMailer5/classes/Swift/MailTransport.php (line 28)