Re: [web2py] Re: Email form contents after submission

2012-06-22 Thread 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. > Setting up the web2py mailer is covered in the book: ht

Re: [web2py] Re: Email form contents after submission

2012-06-22 Thread Omar Technologies
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

[web2py] Re: Email form contents after submission

2012-06-21 Thread Anthony
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