[web2py] Re: Substituting an email address with a reference in a web2py emailing form

2020-02-28 Thread villas
If details.email_address is a var, then it shouldn't be in quotes. To avoid any doubt, just use a str: 'myt...@validemail.com' General approach: "first get it working, then improve it". Maybe this will help... def contact_us(): details=db.hotel_profile(request.args(0, cast=int))

[web2py] Re: Substituting an email address with a reference in a web2py emailing form

2020-02-23 Thread mostwanted
I am sure details.email_address is defined, I double checked. I redefined my code & added the highlighted lines, now everytime i send the email response flashes an error message. How can I get it to tell me the exact error?? def contact_us(): details=db.hotel_profile(request.args(0,

[web2py] Re: Substituting an email address with a reference in a web2py emailing form

2020-02-23 Thread Scott Hunter
What error did it give you? Are you sure `details.email_address` is defined? On Sunday, February 23, 2020 at 8:13:07 AM UTC-5, mostwanted wrote: > > I did try it without the quotes & it still gave me an error! > > On Sunday, February 23, 2020 at 2:59:04 PM UTC+2, Scott Hunter wrote: >> >> Did

[web2py] Re: Substituting an email address with a reference in a web2py emailing form

2020-02-23 Thread mostwanted
I did try it without the quotes & it still gave me an error! On Sunday, February 23, 2020 at 2:59:04 PM UTC+2, Scott Hunter wrote: > > Did you try removing the quotes around the address? > > - Scott > > > > On Saturday, February 22, 2020 at 4:56:04 PM UTC-5, mostwanted wrote: >> >> I've created

[web2py] Re: Substituting an email address with a reference in a web2py emailing form

2020-02-23 Thread Scott Hunter
Did you try removing the quotes around the address? - Scott On Saturday, February 22, 2020 at 4:56:04 PM UTC-5, mostwanted wrote: > > I've created an emailing form in my application but have substituted where > the email goes with a reference that contains the email, the problem is > that