Thanks Hermann


Yes
webpy folder is accessible in the directory

Proj
code.py
static/
templates/
web/

if you see utils.py you can see that if we set web.config.smtp_server

web is an undefined global name

Hermann Kaser wrote:
On Sun, Mar 30, 2008 at 9:10 PM, paul jobs <[EMAIL PROTECTED]> wrote:
  
import web
web.config.smtp_server='localhost'
 web.sendmail('[EMAIL PROTECTED]','[EMAIL PROTECTED]','Hi there', '<img
src="" class="moz-txt-link-rfc2396E" href="http://www.google.com/intl/en_ALL/images/logo.gif">"http://www.google.com/intl/en_ALL/images/logo.gif">',headers={'Content-Type':
'text/html'} )
 Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "web/utils.py", line 830, in sendmail
    smtpserver = smtplib.SMTP(web.config.smtp_server)
NameError: global name 'web' is not defined
    

Have you installed web.py?
Is it accesible to whatever you are running it from in the $PATH?

  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to