|
Post by camblonie on Jan 6, 2015 2:52:43 GMT
I'm having a problem with the most important part of Openhab in my opinion. It seems straight forward but I cant send an email thru my gmail account. I posted this question on the Openhab google group but got no response. I'm trying to send an email from a gmail to a gmail account, hostname=smtp.gmail.com, port 587, tls=true. A lot of detail comes up in the command window when I try to send an email but the most obvious trouble spot is "smtpsendfailedexception: 5.7.0 must issue a STARTTLS command first...".
Anyone have this issue and resolved it? I've tried other email accounts but no luck yet.
|
|
|
Post by Admin on Jan 6, 2015 4:46:02 GMT
Did you put the "email bundle" in your addon folder?
Pretty much every feature in the openhab.cfg file requires that you copy the corresponding addon java file into the addon folder.
|
|
|
Post by camblonie on Jan 7, 2015 3:34:54 GMT
If you mean the action.mail jar then yes i've got it in the addons folder. Im running on windows now so I have just about all jar's in the addons folder.
|
|
|
Post by demondreamer on Jan 11, 2015 9:15:10 GMT
I send email in OpenHAB from one gmail account to another gmail account. I don't have a specific answer to your problem, but I can post what is working for me. I seem to recall that you do have to go into your gmail settings, click "Accounts and Import", then "Other Google Account Settings". Under "Signing in" click "Access for less secure apps" and enable it. Emails sent by OpenHAB were being rejected before I did this.
Below is a cut and paste from my openhab.cfg file.
######################## Mail Action configuration #################################### # # The SMTP server hostname, e.g. "smtp.gmail.com" mail:hostname=smtp.gmail.com
# the SMTP port to use (optional, defaults to 25 (resp. 587 for TLS)) mail:port=587
# the username and password if the SMTP server requires authentication mail:username=xxxxxxxxxxx@gmail.com mail:password=xxxxxxx
# The email address to use for sending mails mail:from=xxxxxxxxxxx@gmail.com
# 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=
-Demondreamer
|
|
|
Post by camblonie on Jan 11, 2015 16:55:04 GMT
Thank you Demondreamer! Works now.
|
|