>
> thanks a lot for that. But I think I made a mistake in asking the
> question. What i want to know more than just this is how to set up a mail
> server... or how to set up the mail 'mailer' object... and how should i
> configure it.
>
Setting up the web2py mailer is covered in the book:
ht
Anthony,
thanks a lot for that. But I think I made a mistake in asking the question.
What i want to know more than just this is how to set up a mail server...
or how to set up the mail 'mailer' object... and how should i configure it.
Is that something I can learn from these forums...
But thanks
Assuming you have defined the "mail" mailer object as in the "welcome" app
db.py, something like this:
if form.process().accepted:
message = ''.join(['%s: %s' % (f, XML(form.vars[f], sanitize=True
))
for f in db.suggestions.fields])
mail.send(to='ad...@yoursite.com', reply_to=form
3 matches
Mail list logo