I am using Openhab 3 and have installed the mail binding.
I can send emails successfully without attachments but cannot send with an attachment.
Here is what I have done that doesn’t work.
message = "Someone is at the front door at " + Date(); var attachmentUrlList = "file:///tmp/image.jpg" ; actions.get("mail", "mail:smtp:1032da1f").sendHtmlMail("email@example.com", "openHAB 3 front door bell", message , attachmentUrlList);
This is the error I am seeing:
[ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID ‘8e1e6893d6’ failed: TypeError: Can not invoke method [jdk.dynalink.beans.SimpleDynamicMethod Boolean org.openhab.binding.mail.internal.action.SendMailActions.sendHtmlMail(String,String,String)] with the passed arguments; they do not match any of its method signatures. in at line number 96
I must be missing something obvious as sending email attachments should be something that is used everyday.
I have looked at the mail examples and they didn’t work.