Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11037
| References | <CAB3cKwwMkcu=dPptPT4N5YXJu3FLOXbyVFs+rWLZAEJUxo6JwA@mail.gmail.com> |
|---|---|
| Date | 2011-08-08 17:26 +0100 |
| Subject | Re: smtp |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2037.1312820781.1164.python-list@python.org> (permalink) |
On Mon, Aug 8, 2011 at 5:08 PM, Verde Denim <tdldev@gmail.com> wrote:
> and it returns -
> "TypeError" with no other information...
> It appears to be generated from the line
>
> msg = ("From: %s\r\nTo: %s\r\n\r\n"
> % (fromaddr, ", ".join(toaddrs)))
>
> But I'm not sure why...
>
I transcribed pieces manually from your code into Python 2.4.5 and
didn't get an error. What did you enter at the From: and To: prompts?
As a side point: Does anyone else feel that it's potentially confusing
to have a function whose parameter has the same name as the function
itself? This is straight from the example.
ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: smtp Chris Angelico <rosuav@gmail.com> - 2011-08-08 17:26 +0100
csiph-web