I upgraded my server to PHP 8.1 and got a warning regarding smtp after editing and saving a page. I have the version of the SMTP plugin dated 2022-09-11. Dokuwiki version: Release 2022-07-31a "Igor". I am using IIS version 10 as the webserver. This is the warning message:
Warning: Undefined array key "SERVER_ADDR" in C:\inetpub\wwwroot\dokuwiki4\lib\plugins\smtp\helper.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at C:\inetpub\wwwroot\dokuwiki4\lib\plugins\smtp\helper.php:22) in C:\inetpub\wwwroot\dokuwiki4\inc\common.php on line 1817
The wiki continues to work and the email notification is sent, but the warning is bothersome.
Any ideas?