It looks like email was working, and now it's not. :(
I am down to static typing with still no result.
I have postfix installed from my ubuntu repositories.
I have turned off postfix and I get an error, so I figure it is getting
that far.
---
def email_user(sender,message,subject, recipient):
import smtplib
fromaddr=sender
toaddrs=recipient
#msg="From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%
s"%(fromaddr,toaddrs,subject,message)
msg="From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%
s"%("[email protected]","[email protected]","Testing","Another
test")
server = smtplib.SMTP('localhost:25')
server.sendmail(fromaddr, toaddrs, msg)
server.quit()
---
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---