So I got the mail function working correctly but now I can't get it to send me the fields from the form. The form is standard HTML with ids on all the inputs. In the controller I have:
def new_post_two(): form = SQLFORM(db.post) if form.accepts(request, formname=None): message=%(request.vars.distributor,request.vars.dba,request.vars.contactnum,request.vars.fax,request.vars.location,request.vars.locationtwo,request.vars.city,request.vars.state,request.vars.zip,request.vars.name,request.vars.contact,request.vars.email) mail.send(to=['s...@distrobeef.com'],subject='DistroBeef Dealer Contact',message=message) return DIV("Thank you for contacting us! We have received your information and will contact you shortly.") elif form.errors: return TABLE(*[TR(k, v) for k, v in form.errors.items()]) What am I doing wrong here? (And this is just the latest version, I've tried a bunch of different things with the syntax and message part but obviously not the right combo.) Thanks.