-->
Page 1 of 1

Re: Sending email with Micropython

PostPosted: Fri Sep 28, 2018 8:44 am
by henkoegema
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) ?

Re: Sending email with Micropython

PostPosted: Tue Oct 02, 2018 3:16 pm
by henkoegema
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: