Beginner question with sendmail rule


I want to create a simplerule to snd me an email every time a swich is pressed

This is the rule
`import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*

rule “Toets gedrukt”
Item Licht_Gelijkvloer_Bijkeuken_Centraal changed
sendMail( “” , “Toets gedrukt” , “Er is een toets gedrukt” )

The problem is that I get this error while pressing the button
23:33:30.966 [ERROR] [o.o.c.s.ScriptExecutionThread :50 ] - Error during the execution of rule 'Toets gedrukt': The name 'sendMail(<XStringLiteralImpl>,<XStringLiteralImpl>,<XStringLiteralImpl>)' cannot be resolved to an item or type.

Do I have to dd something?


You have to have the org.openhab.action.mail-1.7.1.jar (or whatever version you are using) installed in your addons. Additionally you need to populate the “Mail Action configuration” section of openhab.cfg.

Thank you,
I added the org.openhab.action.mail-1.7.1.jar-file and now it’s working :grinning:

where is that? could you give me URL to download it?