Sorry for a so basic question but I don’t find why I can’t send mail from openHAB.
My setup:
######################## Mail Action configuration ####################################
#
# The SMTP server hostname, e.g. "smtp.gmail.com"
mail:hostname=smtp.free.fr
# the SMTP port to use (optional, defaults to 25 (resp. 587 for TLS))
#mail:port=
# the username and password if the SMTP server requires authentication
#mail:username=
#mail:password=
# The email address to use for sending mails
mail:from=myemail1@free.fr
# set to "true", if TLS should be used for the connection
# (optional, defaults to false)
#mail:tls=true
# set to "true", if POP before SMTP (another authentication mechanism)
# should be enabled. Username and Password are taken from the above
# configuration (optional, default to false)
#mail:popbeforesmtp=
And here is my rule:
rule "Test mail"
when
Item SendMail changed
then
logInfo("SendMail","Test send mail")
sendMail("myemail2@free.fr", "test", "test mail")
end
In the logs, there is nothing wrong (no error), I even see that the mail is sent.
But then when I consult my e-mails, I see no new message !
I tried with and without TLS. In each case, the SMTP server seems to accept the connection. The mail is just not delivered ! Any idea ?