ich habe seit 2 Tagen versucht die Email-Benachrichtung von openHAB2 ans Laufen zu bekommen - leider bisher ohne Erfolg.
meine mail.cfg sieht wie folgt aus: (Email-Adresse und Passwort habe ich mal "neutralisiert")
Code: Alles auswählen
# The SMTP server hostname, e.g. "smtp.gmail.com"
hostname=smtp.gmail.com
# the SMTP port to use (optional, defaults to 25 (resp. 587 for TLS/SSL))
port=465
# the username and password if the SMTP server requires authentication
username=user-mail-adresse von gmail
password=passwort
# The email address to use for sending mails
from=user-mail-adresse von gmail
# set to "true", if STARTTLS is enabled (not required) for the connection
# (optional, defaults to false)
#tls=true
# set to "true", if SSL negotiation should occur on connection
# do not use both tls=true and ssl=true
# (optional, defaults to false)
ssl=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)
#popbeforesmtp=
# Character set used to encode message body
# (optional, if not provided platform default is used)
#charset=
Code: Alles auswählen
rule "Emailbenachrichtung bei Neustart"
if System started
then
sendMail
(
"enrico@rogalski.net",
"openHAB2 wurde neu gestartet",
"Das System wurde neu gestartet und ist nun betriebsbereit + Date.state.format("%tr") +" am "+ Date.state.format("%tD")"
)
end
Hat einer vielleicht eine Idee wo der Fehler liegt?
Danke
echicor