splitbrain / dokuwiki-plugin-smtp

Send DokuWiki mails via a configured SMTP server
https://www.dokuwiki.org/plugin:smtp
12 stars 14 forks source link

SMTP warning #55

Open skycor opened 1 year ago

skycor commented 1 year ago

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 warnings persist

UPDATE:

I had previously left the FQDN field empty in the SMTP configuration section. I added the FQDN to that field and the warning messages no longer pop up.

The FQDN field claims that it can find the FQDN on its own if that field is left blank.