horst-n / WireMailSmtp

ProcessWire: Extension to the new WireMail baseclass (since PW 2.4.1)
15 stars 9 forks source link

PHP 8.x / Deprecated: Function strftime() #15

Closed flipzoom closed 1 year ago

flipzoom commented 2 years ago

Under PHP 8.x and with the latest module version 0.6.0 there is a deprecated message when sending.

Deprecated: Function strftime() is deprecated in /site/modules/WireMailSmtp/smtp_classes/email_message.php on line 675

It may help to simply replace the function with Ryan's replacement, but this is also only available since PW 3.0.197. See: https://processwire.com/api/ref/wire-date-time/strftime/

gerritvanaaken commented 1 year ago

And some other PHP8-related deprecation warnings:

Deprecated: Creation of dynamic property smtp_message_class::$realm is deprecated in /Users/.../site/assets/cache/FileCompiler/site/modules/WireMailSmtp/WireMailSmtpAdaptor.php on line 203

Deprecated: Creation of dynamic property smtp_message_class::$workstation is deprecated in /Users/.../site/assets/cache/FileCompiler/site/modules/WireMailSmtp/WireMailSmtpAdaptor.php on line 204

Deprecated: Creation of dynamic property smtp_message_class::$authentication_mechanism is deprecated in /Users/.../site/assets/cache/FileCompiler/site/modules/WireMailSmtp/WireMailSmtpAdaptor.php on line 205
tbba commented 1 year ago

I wonder what is the best step now to have it fixed.

romaincazier commented 1 year ago

Should be fixed with https://github.com/horst-n/WireMailSmtp/pull/16 !