2015-07-24, 23:16
Hello Community.
I am trying to send my self an email but getting script faliure... here is the code
here is the error log
Can anyone please help...I think it could be that Kodi does not use the 'import smtplib' but 'import email.utils' or something like that
Thanks a million.
I am trying to send my self an email but getting script faliure... here is the code
Code:
import smtplib
import xbmc
import xbmcgui
content = 'this is where i will type my name with the on-screen keyboard...eventually'
mailserver = smtplib.SMTP("smtp.some_mail.com",465)
mailserver.ehlo()
mailserver.starttls()
mailserver.login('[email protected]','thepassword')
mailserver.sendmail('[email protected]','[email protected]',content)
mailserver.close()
here is the error log
Code:
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.AttributeError'>
Error Contents: 'module' object has no attribute 'SMTP'
Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Kodi\userdata\addon_data\plugin.program.super.favourites\Super Favourites\Maintenance\email_snippet\email.py", line 1, in <module>
import smtplib
File "C:\Program Files (x86)\Kodi\system\python\Lib\smtplib.py", line 46, in <module>
import email.utils
File "C:\Users\User\AppData\Roaming\Kodi\userdata\addon_data\plugin.program.super.favourites\Super Favourites\Maintenance\email_snippet\email.py", line 6, in <module>
mailserver = smtplib.SMTP("smtp.live.com",465)
AttributeError: 'module' object has no attribute 'SMTP'
-->End of Python script error report<--
Can anyone please help...I think it could be that Kodi does not use the 'import smtplib' but 'import email.utils' or something like that
Thanks a million.