-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sendmail cont connect to smtp.gmail.com #14404
Comments
Are you using your Google account password ? |
And you need to set the EMAIL_FROM with
|
i use sendmail [smtp.gmail.com:25:mrpatate76@gmail.com:16caracter password for in app:mrpatate76@gmail.com:mrpatate76@gmail.com:alarme temperature frigo] Important, Verifier le frigo, la temperature est elevee always same result : 21:05:53.518 CMD: sendmail [smtp.gmail.com:25:mrpatate76@gmail.com:password:mrpatate76@gmail.com:mrpatate76@gmail.com:alarme temperature frigo] Important, Verifier le frigo, la temperature est elevee |
i think it is a authentification or Secured Connection matter from gmail server |
still the same with or without the <> 21:10:56.987 CMD: sendmail [smtp.gmail.com:465:mrpatate76@gmail.com:password:mrpatate76@gmail.com:mrpatate76@gmail.com:alarme temperature frigo] Important, Verifier le frigo, la temperature est elevee |
Did you followed the instruction for application specific password ? It will NOT work with your Google Account password |
yes got the 16 letters for application specific password. try it on my phone and worked, but same one in tasmota get wrong parameter, and send nothing since not activity is shown on my google account page |
Don't send to yourself, I think gmail is not supporting that |
oh, good to know, i will try to send it to my other email, juste to see if it work. dont look like it change anything, let me know if you got it to work on your side thanks for the help |
Can't get it to work, neither with gmail nor my local smtp server Alternatively an easy way to send an simple email is to use a WebHook with IFTTT or Integromat or Zappier that you can call from Tasmota using WebQuery command |
hello, but in tasmota console, when i try to do the WebQuery unsing: WebQuery Https://maker.ifttt.com/trigger/alarme/with/key/d1kz82kwUI0Tr8SThMsx1X GET is there anything else that need to be compile to get it working? thanks again for your help 17:12:02.846 CMD: WebQuery Https://maker.ifttt.com/trigger/alarme/with/key/d1kz82kwUI0Tr8SThMsx1X GET |
got two alarm mail from ifttt |
You just got mail another mail :)
|
ok tested email on esp32 and esp8266. (both use very different approaches) esp32 works without any problems. esp8266 indeed does no longer connect to gmail in the latest dev version. however at least in an older version (9.4) it works well. so it cannot be due to change at gmail. |
it turns out that light_bear is the cause. taking the ssl lib from 9.4 into latest dev solves the problem. |
found the reason and fixed the issue. will do a pr later today |
Thanks @gemu2015 I'm curious what was the problem? |
simple esp8266 smtp needs insecure TLS. the new default was insecure set to false. |
Thanks @gemu2015 |
i tried to compile with development in tasmotizer, but I get Fail, something related to sendmail, bear client not define: i add only those custum parameters: #ifndef USE_SCRIPT #define USE_SENDMAIL part of the compile log: Compiling .pio/build/firmware/lib50a/bearssl-esp8266/aead/eax.c.o |
Which tasmota are you compiling ? "tasmota.bin" ? |
i use tasmotizer for sonoff zigbee bridge, and passing custum parameters |
by the way, i manage to get an email using =>WebSend [maker.ifttt.com] /trigger/alarme/with/key/d1kz82kwUI0Tr8SThMsx1X |
Tasmotizer is a PC app to flash firmware. It's not a compiler. Are you talking about TasmoCompiler ? |
sorry you are right ESP8266 with onOff Zigbee Bridge #ifndef USE_SCRIPT custom parameters: |
ALWAYS use Tasmota as base for self compile. Other env are specialized and restricted. |
@mrpatate76 |
@gemu2015 , hi sir can you tell me sendmail is working at the moment ? I've tried almost everything and still not working.I have changed the 3 files and i added the rule #define TLS in config override file ,still not working when i type the command =>sendmail.... in the console , can you give me advice / info ? Thank you very much in advance.Grtz |
use the very last dev Version. and try the full cmd in console (with your own credentials and email addresses) =>sendmail [smtp.gmail.com:465:user:password:<from@gmail.com>:<to@gmail.com>:test]Hello world |
you must use the sharp clips on esp8266 (not on esp32) |
Thx!!!! Verzonden vanaf mijn Huawei-telefoon-------- Oorspronkelijk bericht --------Van: gemu ***@***.***>Datum: za 29 jan. 2022 11:30Aan: arendst/Tasmota ***@***.***>Cc: Tino4 ***@***.***>, Mention ***@***.***>Onderwerp: Re: [arendst/Tasmota] sendmail cont connect to smtp.gmail.com (Issue #14404)
@Tino4
use the very last dev Version.
#define USE_SENDMAIL should be enough now
and try the full cmd in console (with your own credentials and email addresses)
=>sendmail ***@***.******@***.***:test]Hello world
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thx guys its working now with the latest developer firmware and the command as follows :sendmail [smtp.gmail.com:465:user:passwd:from@gmail.com:to@gmail.com:test]Hello world ,i use the 8266 and need the sharp clips !!Many thx @ gemu and Theo !!!I'm so happy now :-) Grtz |
Hello |
the mail option in esp8266 is very limited. it does only work with a few mail servers and only with setting the email server to reduced security. (gmail is working, icloud does not) |
Hi guys , i've still a problem with sendmail esp8266 , always the first time execution troubles with the sendmail command , second ,third .....time no problem at all.it seems that if the esp8266 is inactive for a while the problem occurs.I've disabled sleep ....no solution.I've tried last firmware version ...no solution.Anyone a suggestion?P.S. there is also a bug in the calculation of the ISL28022 , the ISL28022 uses a 5 milliohm resistor instead of an 100milliohm and the isl28022 calculation is based on a ina219 thus wrong current value , also the bus voltage calculation is wrong.Maybe someone can give me info or can help me with these.Best regards , Tino |
Open a separate discussion for the ISL28022 |
okay , i'm sorry for that.Best Regards,Tino |
Starting on May gmail will not alow user/pass login any more.
That could impact on sendmail with both cpu.
El El sáb, 16 de abr. de 2022 a la(s) 07:56, Tino4 ***@***.***>
escribió:
… Open a separate discussion for the ISL28022
okay , i'm sorry for that.Best Regards,Tino
—
Reply to this email directly, view it on GitHub
<#14404 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXBW4KKH42EVUBDAQQNTBTVFKMFPANCNFSM5LZZQWEA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Where did you got this information ? |
Hi all, trying to send email with ESP32-CAM image as atachment with the Tasmota script. Sending email through Gmail (16character app password procedure) works. But the ">m" section is not evaluated, also i have to fill in the values at the sendmail line, "*" are not parsed either ... I use the tasmocompiler for my firmware and trying to find the missing part. My defines are a stacked up set of includes found in a lot different solutions from the web (so it is a mesh ;-) ) can anybody tell me the missing "define" ? |
oh, oops this item is closed, I will open a new one. |
Fixed the problem ...
|
"space" in front |
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
Hello, i try to send an email on high température into a script
all that is in my sonoff zigbee bridge, flashed with tasmota of course
so far, manage to print on high température and link it to a bulb, to be sure that i am going to the right place in the code
19:24:08.916 CMD: sendmail [::::*:mrpatate76@gmail.com:test sendmail] juste un test
19:24:08.918 mailsize: 44
19:24:08.919 smtp.gmail.com - 465 - mrpatate76@gmail.com - password
19:24:08.920 mrpatate76@gmail.com - mrpatate76@gmail.com - test sendmail - juste un test
19:24:08.921 Connecting: smtp.gmail.com on port 465
19:24:09.021 Connection failed
19:24:09.024 RSL: RESULT = {"Sendmail":"Wrong parameters"}
i test my password to be sure it is working ( in app paswaord) and it is ok, so i guess it is something in code or related to authentification on gmail side
i compile using tasmotiser including this
#ifndef USE_SCRIPT
#define USE_SCRIPT // adds about 17k flash size, variable ram size
#endif
#ifdef USE_RULES
#undef USE_RULES
#endif
#define DEBUG_EMAIL_PORT Serial
#define USE_BUTTON_EVENT
#define SCRIPT_POWER_SECTION
#define USE_SENDMAIL
#define USE_SCRIPT_WEB_DISPLAY
#define SUPPORT_MQTT_EVENT
#define SUPPORT_IF_STATEMENT
#define USE_SCRIPT_SUB_COMMAND
#define EMAIL_USER "mrpatate76@gmail.com"
#define EMAIL_PASSWORD "password"
#define EMAIL_FROM "mrpatate76@gmail.com"
#define EMAIL_SERVER "smtp.gmail.com"
#define EMAIL_PORT 465
#define MAIL_TIMEOUT 2000
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Steps to reproduce the behavior:
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: