On Tue, Sep 02, 2008 at 04:50:15PM -0300, Gabriel Genellina wrote:
> > messg = email.message.Message()
>
> Replace this line with:
> messg = email.mime.multipart.MIMEMultipart()
> *OR*
> Set the Content-Type header to "multipart/mixed" *before* anything else.
thanks Gabriel!
i coudn't have thou
Hi all,
i know i'm probably going to ask a very silly question, but i
can't figure out where i'm doing wrong just reading the docs.
trying to build and send a mail message using the email.* modules
(with python 2.5).
a simplified version of my script that breaks is this:
mailtest.py
On Fri, Oct 06, 2006 at 10:09:14AM +, Duncan Booth wrote:
> I hope you have a good reason why you don't do:
>
> cursor.execute(a_complex_select_sql, (id_foo, value_bar, ...))
>
> instead.
hehe.
i was just trying to be didactic, simplifying the actual situation.
(anyway, sometimes i had to
On Thu, Oct 05, 2006 at 10:48:36AM +, Duncan Booth wrote:
> The other main reason for preferring format strings is that they make it
> easier to refactor the code. If you ever want to move the message away from
> where the formatting is done then it's a lot easier to extract a single
> strin
On Thu, May 12, 2005 at 04:42:34PM +0100, Tim Williams wrote:
> Just don't use a return statement at all, or do something like
>
> [function body]
> if not val = None:
> return val
> [end of function]
i didn't understood that.
if you don't return nothing explicitly the function returns None.