0

sending an email via python
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

sending an email via python

by bretthoward on Tue Feb 11, 2020 2:34 pm

So I have found this tutorial that seems easy enough....
https://learn.adafruit.com/arduino-less ... ython-code

But I'm not sure where to obtain the smtplib files from and the example doesn't really state what to do....

bretthoward
 
Posts: 37
Joined: Thu Dec 21, 2017 8:47 pm

Re: sending an email via python

by mikeysklar on Tue Feb 11, 2020 4:56 pm

Hey Bretthoward,

I'm surprised this guide did not include the installation of smtplib. You should be able to install it using the following command:

Code: Select all | TOGGLE FULL SIZE
 pip install smtplib


If you are using python3 then you might need to use pip3 instead of pip above.

mikeysklar
 
Posts: 734
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.