09-02-2020, 17:47
I know it's a bit off topic because it's not a Python forum, but it can be simple for you to answer me
I made another script for sending mail and I have this as an error message:
I made another script for sending mail and I have this as an error message:
Quote: sendmail(str(receiver),'Wetterstation error',str(datetime.now().strftime("%d.%m.%Y %H:%M:%S")) + ' TEST')Thanks
File "Z:\Partage\Projets\Arduino\WD\Ori\WeatherDuino_Addon\sendmail.py", line 7, in sendmail
msg = MIMEText(content)
NameError: global name 'MIMEText' is not defined
Laurent

