I’m trying to send the URL of the Pi Camera via sendMail. Sometimes I receive a message, but no URL, although there is an error "The method sendMail is undefined.
import java.util.List
rule “Send Mail”
when
Item TFkontakt_optisch changed from CLOSED to OPEN
then
val List<String> attachmentUrlList = newArrayList("http://192.168.188.131:8050/jpg/image.jpg")
sendMail("xxx@gmail.com", "Besucher ist da", "Test", attachmentUrlList)
end