Comments on: Raspberry Pi: Send an Email using Python (SMTP Server) https://randomnerdtutorials.com/raspberry-pi-send-email-python-smtp-server/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 25 Jun 2025 09:31:03 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Steve Gale https://randomnerdtutorials.com/raspberry-pi-send-email-python-smtp-server/#comment-950519 Fri, 23 Aug 2024 18:42:57 +0000 https://randomnerdtutorials.com/?p=129939#comment-950519 The tutorial is just what I wanted – but when I create a new gmail account I get an error, “oops something went wrong try again”

It seems like google know about the problem but do not know when they will fix it.

I have tried on my PI, ipad, iphone and macbook using chrome and firefox.

]]>
By: 238764893urpi[p0394n9 https://randomnerdtutorials.com/raspberry-pi-send-email-python-smtp-server/#comment-929566 Sun, 23 Jun 2024 11:48:18 +0000 https://randomnerdtutorials.com/?p=129939#comment-929566 In reply to Sara Santos.

Thank You

]]>
By: Juergen https://randomnerdtutorials.com/raspberry-pi-send-email-python-smtp-server/#comment-852165 Sun, 30 Jul 2023 11:20:00 +0000 https://randomnerdtutorials.com/?p=129939#comment-852165 Hello,
thank you for your quick response.
My problem was with the App password.
The E-mail dispatch works with the generated App password.
I didn’t read the relevant text properly.

Kind Regards
Juergen

]]>
By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-send-email-python-smtp-server/#comment-852057 Sat, 29 Jul 2023 17:40:17 +0000 https://randomnerdtutorials.com/?p=129939#comment-852057 In reply to Juergen.

Hi.
did you create an app password as mentioned in the tutorial?
You must use the app password created and not the actual email password.
Regards,
Sara

]]>
By: Juergen https://randomnerdtutorials.com/raspberry-pi-send-email-python-smtp-server/#comment-852016 Sat, 29 Jul 2023 12:22:18 +0000 https://randomnerdtutorials.com/?p=129939#comment-852016 When running the e-mail program (python3 send_email.py), I get the following messages:
“Traceback (most recent call last):
File “send_email.py”, line 32, in
server.login(from_email_addr, from_email_pass)
File “/usr/lib/python3.7/smtplib.py”, line 730, in login
raise last_exception
File “/usr/lib/python3.7/smtplib.py”, line 721, in login
initial_response_ok=initial_response_ok)
File “/usr/lib/python3.7/smtplib.py”, line 642, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b’5.7.8 Username and Password not accepte d. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials u17-2 0020a05600c211100b003f90b9b2c31sm9053703wml.28 – gsmtp’)”
With my username and password I can log in to my E-mail account via the corresponding website.
Kind Regards
Juergen

]]>
By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-send-email-python-smtp-server/#comment-847102 Thu, 13 Jul 2023 14:46:07 +0000 https://randomnerdtutorials.com/?p=129939#comment-847102 In reply to Toni.

Hi.
Thanks for the suggestion.
I’ll take a look at that subject for future tutorials.
Regards,
Sara

]]>
By: Toni https://randomnerdtutorials.com/raspberry-pi-send-email-python-smtp-server/#comment-847097 Thu, 13 Jul 2023 14:18:39 +0000 https://randomnerdtutorials.com/?p=129939#comment-847097 Hello again,

another thing, that seems to have almost no coverage, is to

receive or pull emails

with Python.

Sending emails is most important, but sometimes receiving also, e.g. when to send data to remote Pis or Pi picos for further processing.

Such a client should handle bare text obviously and maybe files as well.

Thanks!

]]>
By: Rui Santos https://randomnerdtutorials.com/raspberry-pi-send-email-python-smtp-server/#comment-847090 Thu, 13 Jul 2023 13:38:48 +0000 https://randomnerdtutorials.com/?p=129939#comment-847090 In reply to Toni.

Thank you for the suggestion and we’ll definitely be covering this subject for the Raspberry Pi Pico!

]]>
By: Rui Santos https://randomnerdtutorials.com/raspberry-pi-send-email-python-smtp-server/#comment-847089 Thu, 13 Jul 2023 13:31:45 +0000 https://randomnerdtutorials.com/?p=129939#comment-847089 In reply to luiz.

Exactly, it will also work in any machine that runs Python scripts.

]]>
By: Rui Santos https://randomnerdtutorials.com/raspberry-pi-send-email-python-smtp-server/#comment-847088 Thu, 13 Jul 2023 13:31:10 +0000 https://randomnerdtutorials.com/?p=129939#comment-847088 In reply to luiz.

You’re welcome!

]]>