Many thanks Vasile,

I´m 100% sure I tested the same setting many times before, but no luck. Now I copied your settings and voila it works.

It´s sometimes so frustrating to search for errors and after hours of searching it just works without finding what was wrong. But I guess thats the life of a programmer.


Kenneth

in db.py

mail.settings.server = 'smtp.webfaction.com <http://smtp.webfaction.com>'
mail.settings.sender = 'some email of yours'
mail.settings.login = 'user:pwd' # your webfaction name and password, you may change the password for mailboxes from webfaction panel


then from controllers

mail.send(to=['y...@whatever.com <mailto:y...@whatever.com>'], subject='Web2py email', message='Sent with Web2py!')

just tested and works

Reply via email to