<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sheila's Page &#187; Python</title>
	<atom:link href="http://www.thinkspot.net/sheila/category/computers/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thinkspot.net/sheila</link>
	<description>Math, Computers and Education</description>
	<lastBuildDate>Wed, 17 Feb 2010 02:27:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Python question on sending e-mail msg</title>
		<link>http://www.thinkspot.net/sheila/2006/05/python-question-on-sending-e-mail-msg/</link>
		<comments>http://www.thinkspot.net/sheila/2006/05/python-question-on-sending-e-mail-msg/#comments</comments>
		<pubDate>Thu, 18 May 2006 14:34:30 +0000</pubDate>
		<dc:creator>ulandreman</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.thinkspot.net/sheila/?p=57</guid>
		<description><![CDATA[I&#8217;m trying to use your example code for sending an e-mail message with Python. I&#8217;m getting an error message and I assume I&#8217;m missing something very simple and basic, but I can&#8217;t see it. The code I enter into IDLE and the results back are as follows: >>> import smtplib >>> smtpserver = &#8216;mail.HennepinPublicHealth.org&#8217; >>> [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to use your example code for sending an e-mail message with Python.  I&#8217;m getting an error message and I assume I&#8217;m missing something very simple and basic, but I can&#8217;t see it.</p>
<p>The code I enter into IDLE and the results back are as follows:</p>
<p>>>> import smtplib<br />
>>> smtpserver = &#8216;mail.HennepinPublicHealth.org&#8217;<br />
>>> AUTHREQUIRED = 1<br />
>>> smtpuser = &#8216;TheUSERID&#8217;<br />
>>> smtppass = &#8216;ThePassword<br />
>>> RECIPIENTS = ['ulandreman@msn.com']<br />
>>> SENDER = &#8216;urban.landreman@co.hennepin.mn.us&#8217;<br />
>>> mssg = &#8216;This is a test message.&#8217;<br />
>>> session = smtplib.SMTP(smtpserver)</p>
<p>Traceback (most recent call last):<br />
  File &#8220;
<pyshell#9>&#8220;, line 1, in -toplevel-<br />
    session = smtplib.SMTP(smtpserver)<br />
  File &#8220;C:\Program Files\Python\lib\smtplib.py&#8221;, line 244, in __init__<br />
    (code, msg) = self.connect(host, port)<br />
  File &#8220;C:\Program Files\Python\lib\smtplib.py&#8221;, line 307, in connect<br />
    (code, msg) = self.getreply()<br />
  File &#8220;C:\Program Files\Python\lib\smtplib.py&#8221;, line 348, in getreply<br />
    line = self.file.readline()<br />
  File &#8220;C:\Program Files\Python\lib\socket.py&#8221;, line 340, in readline<br />
    data = self._sock.recv(self._rbufsize)<br />
error: (10054, &#8216;Connection reset by peer&#8217;)<br />
>>> </p>
<p>I&#8217;ve changed the User ID and password to some dummy ones for this posting, but I think the error comes from the<br />
session = smtplib.SMTP(smtpserver) line.</p>
<p>Any ideas?</p>
<p>Urban Landreman</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinkspot.net/sheila/2006/05/python-question-on-sending-e-mail-msg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

