diff --git a/fhem/CHANGED b/fhem/CHANGED index f49b7085c..99a8b1f95 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 76_MSGMail: Clean up net::smtp version number before comparison - bugix: 14_Hideki: fixed wrong return in ParseFn (msg533900) 14_SD_WS: fixed wrong return in ParseFn (msg533900) 90_SIGNALduino_un: fixed wrong return in ParseFn (msg533900) diff --git a/fhem/FHEM/76_MSGMail.pm b/fhem/FHEM/76_MSGMail.pm index 091529e76..ca421b275 100644 --- a/fhem/FHEM/76_MSGMail.pm +++ b/fhem/FHEM/76_MSGMail.pm @@ -68,7 +68,8 @@ sub MSGMail_Initialize($) # check version of libnet - if < 3.00, try to load Net::SMTP::SSL $MSGMail_SMTP = $Net::SMTP::VERSION; - if ($Net::SMTP::VERSION >= 3) + $MSGMail_SMTP =~ s/[^0-9.].*$//; + if ($MSGMail_SMTP >= 3.00) { $MSGMail_SSL = 1; }