<br><br><div class="gmail_quote">On Mon, Aug 8, 2011 at 12:26 PM, Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com">rosuav@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Aug 8, 2011 at 5:08 PM, Verde Denim <<a href="mailto:tdldev@gmail.com">tdldev@gmail.com</a>> wrote:<br>
> and it returns -<br>
> "TypeError" with no other information...<br>
> It appears to be generated from the line<br>
><br>
> msg = ("From: %s\r\nTo: %s\r\n\r\n"<br>
>        % (fromaddr, ", ".join(toaddrs)))<br>
><br>
> But I'm not sure why...<br>
><br>
<br>
</div>I transcribed pieces manually from your code into Python 2.4.5 and<br>
didn't get an error. What did you enter at the From: and To: prompts?<br> 
<br></blockquote><div>I'm running 2.6.5 on a debian base...<br>It didn't seem to matter what is input - <br>I tried using a single recipient as well as multiples (separated by comma).<br><br>Output appears as - <br>
# python send_my_msg.py<br>From: <a href="mailto:me@me.com">me@me.com</a><br>To: <a href="mailto:you@you.com">you@you.com</a><br>Enter Message, end with ^D:<br>Traceback (most recent call last):<br>      File "send_my_msg.py", line 12, in <module><br>
             % (fromaddr, ", ".join(toaddr)))<br>TypeError<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
As a side point: Does anyone else feel that it's potentially confusing<br>
to have a function whose parameter has the same name as the function<br>
itself? This is straight from the example.<br>
<br>
ChrisA<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>