Re: Python Will Not Send Email!!

2009-11-20 Thread Victor Subervi
On Fri, Nov 20, 2009 at 12:38 PM, Carsten Haese wrote: > Thank you. This proves conclusively that there IS in fact a file called > email.pyc (and/or email.py) in your directory next to testMail.py. It is > this email.pyc that is being imported instead of the email.py from the > Python library. Get

Re: Python Will Not Send Email!!

2009-11-20 Thread Kev Dwyer
On Fri, 20 Nov 2009 11:58:00 -0400, Victor Subervi wrote: Hello Victor, Carsten's well-specified instruction has identified your problem. >[r...@13gems globalsolutionsgroup.vi]# python -c "import email; print >email" > There is a file named email.pyc, most likely in your current directory, th

Re: Python Will Not Send Email!!

2009-11-20 Thread Carsten Haese
Victor Subervi wrote: > On Fri, Nov 20, 2009 at 11:14 AM, Carsten Haese > wrote: > Please show us a copy-and-paste of your command line window contents > that result from executing <> and then executing > <> immediately thereafter. > > > [r...@13gems

Re: Python Will Not Send Email!!

2009-11-20 Thread Victor Subervi
On Fri, Nov 20, 2009 at 11:14 AM, Carsten Haese wrote: > Kevin neglected to mention that the new interpreter session must be > started in the same directory as the one you're in when you run your > testMail.py script. Since he didn't mention that, we can't be sure that > that's what you did, so th

Re: Python Will Not Send Email!!

2009-11-20 Thread Victor Subervi
On Fri, Nov 20, 2009 at 11:05 AM, Kev Dwyer wrote: > I ran your script on a CentOS vm (5.2 server 32bit, not quite the same as > yours but also running python 2.4.3). It ran without error. So I > suspect that either you have a rogue email module/package on your machine > or there's something wr

Re: Python Will Not Send Email!!

2009-11-20 Thread Carsten Haese
Victor Subervi wrote: > On Thu, Nov 19, 2009 at 5:01 PM, Kev Dwyer > wrote: > > On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote: > > Hello Victor, > > There are some pages on the internet that suggest that this problem > my be > cause

Re: Python Will Not Send Email!!

2009-11-20 Thread Kev Dwyer
On Fri, 20 Nov 2009 07:58:55 -0500, Victor Subervi wrote: > On Thu, Nov 19, 2009 at 5:01 PM, Kev Dwyer > wrote: > >> On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote: >> >> Hello Victor, >> >> There are some pages on the internet that suggest that this problem my >> be caused by a module

Re: Python Will Not Send Email!!

2009-11-20 Thread Victor Subervi
On Thu, Nov 19, 2009 at 5:01 PM, Kev Dwyer wrote: > On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote: > > Hello Victor, > > There are some pages on the internet that suggest that this problem my be > caused by a module named email.py (or email.pyc) in your pythonpath. If > you try import

Re: Python Will Not Send Email!!

2009-11-19 Thread Kev Dwyer
On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote: Hello Victor, There are some pages on the internet that suggest that this problem my be caused by a module named email.py (or email.pyc) in your pythonpath. If you try import smtplib in the interpreter do you get this error message?

Re: Python Will Not Send Email!!

2009-11-19 Thread Carsten Haese
Victor Subervi wrote: > Hi; > I created this testMail.py file as root: > > #!/usr/bin/env python > import smtplib > session = smtplib.SMTP("localhost") > subject = "Hello, " > header = "Subject: %s \r\nContent-type: text/html; charset=utf-8\r\n\r\n" > message = "world!" > email_from = "vic...@is.a

Re: Python Will Not Send Email!!

2009-11-19 Thread Victor Subervi
On Thu, Nov 19, 2009 at 11:28 AM, Victor Subervi wrote: > Hi; > I created this testMail.py file as root: > > #!/usr/bin/env python > import smtplib > session = smtplib.SMTP("localhost") > subject = "Hello, " > header = "Subject: %s \r\nContent-type: text/html; charset=utf-8\r\n\r\n" > message = "w