Re: sendMail Fehler <Methode ist nicht definiert>
Verfasst: 18. Apr 2019 18:27
Meine Konfiguration für GMX Mail (mail.cfg) sieht folgendermaßen aus:
Für Google Mail folgende mail.cfg:
Nach jeder Änderung der mail.cfg habe ich openhab neu gestartet. In irgendeinem Forum habe ich gelesen, dass die Parameter der mail.cfg irgendwo gespeichert werden und nur durch die die Änderung der mail.cfg nicht im System geändert werden.
LG Konrad
Code: Alles auswählen
# The SMTP server hostname, e.g. "smtp.gmail.com"
hostname=mail.gmx.net
# the SMTP port to use (optional, defaults to 25 (resp. 587 for TLS/SSL))
port=587
# the username and password if the SMTP server requires authentication
username=xxxxxxx@gmx.de
password=yyyyy
# The email address to use for sending mails
from=xxxxx@gmx.de
# set to "true", if STARTTLS is enabled (not required) for the connection
# (optional, defaults to false)
tls=false
# 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=false
# Character set used to encode message body
# (optional, if not provided platform default is used)
#charset=
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=587
# the username and password if the SMTP server requires authentication
username=xxxxx@gmail.com
password=yyyyy
# The email address to use for sending mails
from=xxxxx@gmail.com
# set to "true", if STARTTLS is enabled (not required) for the connection
# (optional, defaults to false)
tls=false
# 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=false
# Character set used to encode message body
# (optional, if not provided platform default is used)
#charset=
LG Konrad