<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Send Email from Raspberry PI with Python (with details for Gmail Users)	</title>
	<atom:link href="https://peppe8o.com/send-email-raspberry-pi-python/feed/" rel="self" type="application/rss+xml" />
	<link>https://peppe8o.com/send-email-raspberry-pi-python/</link>
	<description>Raspberry PI, Arduino and Electronics made simple</description>
	<lastBuildDate>Thu, 23 May 2024 05:44:54 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: peppe8o		</title>
		<link>https://peppe8o.com/send-email-raspberry-pi-python/#comment-29267</link>

		<dc:creator><![CDATA[peppe8o]]></dc:creator>
		<pubDate>Thu, 23 May 2024 05:44:54 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=9378#comment-29267</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://peppe8o.com/send-email-raspberry-pi-python/#comment-29254&quot;&gt;ErikNerd&lt;/a&gt;.

Hi Erik,
I confirm that I currently use this script for a daily job monitoring my blog with Python.
Here&#039;s the output of the header&#039;s parser:
&lt;img src=&quot;https://peppe8o.com/wp-content/uploads/2024/05/email-proof.jpg&quot; alt=&quot;email proof&quot; /&gt; 
There are no specific configuration of my gmail account, besides using an App Password, as defined in this tutorial. The only note is that the Google App Password includes spaces inside the block of characters and I keept these spaces in the script.
If you have a spare microSD card, it would be interesting to know if it works to you with a fresh Raspberry PI OS installation.
Please let me know]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://peppe8o.com/send-email-raspberry-pi-python/#comment-29254">ErikNerd</a>.</p>
<p>Hi Erik,<br />
I confirm that I currently use this script for a daily job monitoring my blog with Python.<br />
Here&#8217;s the output of the header&#8217;s parser:<br />
<img src="https://peppe8o.com/wp-content/uploads/2024/05/email-proof.jpg" alt="email proof" /><br />
There are no specific configuration of my gmail account, besides using an App Password, as defined in this tutorial. The only note is that the Google App Password includes spaces inside the block of characters and I keept these spaces in the script.<br />
If you have a spare microSD card, it would be interesting to know if it works to you with a fresh Raspberry PI OS installation.<br />
Please let me know</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ErikNerd		</title>
		<link>https://peppe8o.com/send-email-raspberry-pi-python/#comment-29254</link>

		<dc:creator><![CDATA[ErikNerd]]></dc:creator>
		<pubDate>Wed, 22 May 2024 17:16:39 +0000</pubDate>
		<guid isPermaLink="false">https://peppe8o.com/?p=9378#comment-29254</guid>

					<description><![CDATA[I was skeptical about the gmail piece of this, my result is pretty much what I was expecting:
&lt;code&gt;Traceback (most recent call last):
  File &quot;/home/linda/bin/weekly.py&quot;, line 15, in 
    email_send(recipients, subject, body, sender, attachments)
  File &quot;/home/linda/bin/sendemail.py&quot;, line 69, in email_send
    s.login(username, password) # Authentication
  File &quot;/usr/lib/python3.9/smtplib.py&quot;, line 734, in login
    raise last_exception
  File &quot;/usr/lib/python3.9/smtplib.py&quot;, line 723, in login
    (code, resp) = self.auth(
  File &quot;/usr/lib/python3.9/smtplib.py&quot;, line 646, in auth
    raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b&#039;5.7.8 Username and Password not accepted. For more information, go to\n5.7.8  https://support.google.com/mail/?p=BadCredentials d2e1a72fcca58-6f4d2a8280csm22753924b3a.61 - gsmtp&#039;)&lt;/code&gt;

I don&#039;t think you can log in to gmail this way. 
* If you have this script working somewhere with gmail, please share the working example, including a sample message as received with headers. 
* If there is some configuration of the gmail account to adjust which allows it, I&#039;d be delighted to know about it. 
* If there is some 3rd-party provider accepting this &quot;bare&quot; TLS login on 587 (or any port), I&#039;d like to know about that.]]></description>
			<content:encoded><![CDATA[<p>I was skeptical about the gmail piece of this, my result is pretty much what I was expecting:<br />
<code>Traceback (most recent call last):<br />
  File "/home/linda/bin/weekly.py", line 15, in<br />
    email_send(recipients, subject, body, sender, attachments)<br />
  File "/home/linda/bin/sendemail.py", line 69, in email_send<br />
    s.login(username, password) # Authentication<br />
  File "/usr/lib/python3.9/smtplib.py", line 734, in login<br />
    raise last_exception<br />
  File "/usr/lib/python3.9/smtplib.py", line 723, in login<br />
    (code, resp) = self.auth(<br />
  File "/usr/lib/python3.9/smtplib.py", line 646, in auth<br />
    raise SMTPAuthenticationError(code, resp)<br />
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. For more information, go to\n5.7.8  https://support.google.com/mail/?p=BadCredentials d2e1a72fcca58-6f4d2a8280csm22753924b3a.61 - gsmtp')</code></p>
<p>I don&#8217;t think you can log in to gmail this way.<br />
* If you have this script working somewhere with gmail, please share the working example, including a sample message as received with headers.<br />
* If there is some configuration of the gmail account to adjust which allows it, I&#8217;d be delighted to know about it.<br />
* If there is some 3rd-party provider accepting this &#8220;bare&#8221; TLS login on 587 (or any port), I&#8217;d like to know about that.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
