sending email
#1
hi i will to send email
and i try this
Code:
if controlId==COMMAND:
             content='exemle message'
             mail=smtplib.SMTP('smtp.gmail.com',587)
             mail.ehlo()
             mail.starttls()
             mail.login('[email protected]','**********')
             mail.sendmail('[email protected]','[email protected]',content)
             mail.close()
but i have error in the log the email is not send
20:55:09 T:2620 NOTICE: script.program.boxty.HelloFood : onClick
20:55:10 T:2620 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'smtplib.SMTPAuthenticationError'>
Error Contents: (534, '5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbuP\n5.7.14 rWuULvSHgbr3X0s6clJ8HXvpxFpxznuH8T3I4uM9GhtoezkojIW81E9OnwW6_Gr7qbMthD\n5.7.14 DUUcWdPFFohYUJvruoIiZP9hU0ilpHJVLKvriTvAZnFHgCvQsQAGS4uzenOwNcRNZ0QtK1\n5.7.14 OX1ZP6pzCtIgK2WeQbevyB8jbjQ7Z1sWvxMxv770ZV2wvg9sDB_sTc90lQsXyNYodouv1h\n5.7.14 GfdKIDF4m315dwU870Fg4I_0FCPYs> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/78754 j10sm45530433wjb.46 - gsmtp')
Traceback (most recent call last):
File "C:\Users\abdelfattah\AppData\Roaming\Kodi\addons\script.program.boxty.HelloFood\resources\lib\Produit.py", line 211, in onClick
server.login(gmail_sender,gmail_password)
File "C:\Program Files (x86)\Kodi\system\python\Lib\smtplib.py", line 615, in login
raise SMTPAuthenticationError(code, resp)
SMTPAuthenticationError: (534, '5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbuP\n5.7.14 rWuULvSHgbr3X0s6clJ8HXvpxFpxznuH8T3I4uM9GhtoezkojIW81E9OnwW6_Gr7qbMthD\n5.7.14 DUUcWdPFFohYUJvruoIiZP9hU0ilpHJVLKvriTvAZnFHgCvQsQAGS4uzenOwNcRNZ0QtK1\n5.7.14 OX1ZP6pzCtIgK2WeQbevyB8jbjQ7Z1sWvxMxv770ZV2wvg9sDB_sTc90lQsXyNYodouv1h\n5.7.14 GfdKIDF4m315dwU870Fg4I_0FCPYs> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/78754 j10sm45530433wjb.46 - gsmtp')
-->End of Python script error report<--
Reply
#2
Did you go to https://support.google.com/mail/answer/78754 as requested in the error message? Pay attention to this one bullet:
Your app might not support the latest security standards. Try changing a few settings to allow less secure apps access to your account.
Reply

Logout Mark Read Team Forum Stats Members Help
sending email0