import web
web.config.smtp_server='localhost'
web.sendmail('[EMAIL PROTECTED]','[EMAIL PROTECTED]','Hi there',
'<img
src="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
thanks for any pointers on how to fix this
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---