I want to use the Action Mail Addon in Openhab2. I copied the
org.openhab.action.mail-1.7.1.jar found here to
openhab2-master/git/openhab2/addons. It doesn’t show up in my Eclipse IDE, is this correct?
Then I copied and renamed the openhab.cfg to a new folder
openhab2-master/git/openhab2/conf/services as told here. The folder conf and services didn’t exist. I also searched for a similar location. For my windows PC it is:
C:\openhab2-master\git\openhab2\distribution\src\assemble\resources\addons\conf\services and ubuntu:
openhab2-master/git/openhab2/distribution/openhabhome/conf/services. I also changed the content of the
openhab.cfg to the following:
[...] # The SMTP server hostname, e.g. "smtp.gmail.com" mail:hostname=smtp.gmail.com [...] # The email address to use for sending mails mail:firstname.lastname@example.org [...]
When I want to call the sendMail function via sendMail(email@example.com", “TEST”, “TEST”); it says
the method sendMail(String, String, String) is undefined for the type MyHandler.
What else do I need to configure?