Chat freely about anything...

User avatar
By henkoegema
#78424 I'm trying to send email with Wemos D1 Mini ESP8266 loaded with micropython.

I found some examples googling the internet.

Most examples start with
>>>import smtplib (or >>>import curl)

Already in the first line I fail. :roll:
--------------------------------------------------------
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'smtplib'
--------------------------------------------------------

Q: how do I import the module smtplib (or the module curl) ?
User avatar
By henkoegema
#78467
henkoegema wrote:I'm trying to send email with Wemos D1 Mini ESP8266 loaded with micropython.

I found some examples googling the internet.

Most examples start with
>>>import smtplib (or >>>import curl)

Already in the first line I fail. :roll:
--------------------------------------------------------
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'smtplib'
--------------------------------------------------------

Q: how do I import the module smtplib (or the module curl) ?


I found that module smtplib (https://github.com/micropython/micropython-lib) is only a dummy module.
So: AttributeError: 'module' object has no attribute 'SMTP' <--------- :o

The module curl don't even exists (a.f.a.i.k) <---------- :roll: