I am not sure what is wrong here, and the example is complex so I
cannot understand the details. Nevertheless, I suggest replace
response.render('clublocatormail/send_mail.html',context)
with
from gluon.template import render
render(filename='clublocatormail/send_mail.html',context=context)
Maybe the following information is of help to help me solve the
problem. The mail function reads like:
def send_mail():
mailinglist=db((db.bedrijfcontactpersoon.bedrijf==db.bedrijf.id)(db.bedrijfcontactpersoon.bedrijf==db.bedrijfinschrijving.bedrijf)
\
I converted the send_mail function to a none mail function. The
send_mail function:
def send_mail():
mailinglist=db((db.bedrijfcontactpersoon.bedrijf==db.bedrijf.id)(db.bedrijfcontactpersoon.bedrijf==db.bedrijfinschrijving.bedrijf)
\
3 matches
Mail list logo