Beginner question with sendmail rule

Hi,

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”
when
Item Licht_Gelijkvloer_Bijkeuken_Centraal changed
then
sendMail( “myemail@domain.be” , “Toets gedrukt” , “Er is een toets gedrukt” )
end
`

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?

Thanks
Marc

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?