06.06.2018, 09:35
Log what mail function returns. Also, you should not use mail function from that example, it's outdated.
Code:
res, err = mail('test@test.com', 'Alert', 'KNX object 1/2/2 value is: ' .. tostring(value))
log(res, err)