Re: [WebDNA] showif/sendmail question

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 100446
interpreted = N
texte = one thing to try, make the from a known email address ie. webserver@here.com and then put the subject and then put reply-to=[membersemailaddress] it seems the mail sending engine is picky about valid email addresses in the to and from fields. Brian B. Burton brian@burtons.com "For a list of the ways in which technology has failed to improve our quality of life, press 3." On Aug 4, 2008, at 11:10 AM, Chris Wilkinson wrote: > Thanks for the responses... I thought that I would try for a simple > syntax > error before going into detail. > > So here's the what's happening... Site members login and submit a > request > form. Options on the form vary based on [member] level using the > [showif], > and this seems to work well. > > What I am attempting with this code, is to email the submitted data to > varying people/departments based on the membership level - this is > stored in > the prefs.db. eg. If member1, then email to dept1@yourco.com > > The specific error that I was seeing in the log was "bad email > address", but > when I put the [lookup db=prefs.db... In the page, it pulled the > exactly > correct email. > > I'm betting that there is a better way to accomplish this, but would > still > like to understand why this failed. > > Any suggestions are appreciated... Thanks in advance. > -Chris > > On 8/1/08 5:01 PM, "Donovan Brooke" wrote: > >> cw@e-wave.net wrote: >>> Greetings, >>> >>> Any idea why won't this code work? Each element [showif, sendmail, >>> lookup, formvariables] works fine separately, but not together... >> >> >> I would ask the same as Terry.. what is happening? >> >> I don't notice any syntax errors with the code itself.. however, >> code is hard to troubleshoot when out of its context. I just >> changed one thing to allow for hiding if the email is blank: >> >> [showif member^[type]] >> [text]toemail=[lookup >> db=prefs.db&lookinfield=pref&value=EMAIL_CC&returnfield=value][/text] >> [hideif [url][toemail][/url]=] >> [sendmail to=[toemail]&from=[convertchars >> db=convert_quotes.db][EMAIL][/convertchars]t&subject= Request] >> [formvariables name=__&exact=f] >> [getchars start=3][name][/getchars]: [value] >> [/formvariables] >> [/sendmail] >> [/hideif] >> [/showif] >> >> >> However, if you know your .db records have accurate emails, then >> you wouldn't have to do that check. >> >> Donovan >> >> >> >> >> >> >> >> > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > Brian B. Burton brian@burtons.com "For a list of the ways in which technology has failed to improve our quality of life, press 3." Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] showif/sendmail question (Donovan Brooke 2008)
  2. Re: [WebDNA] showif/sendmail question ("Brian B. Burton" 2008)
  3. Re: [WebDNA] showif/sendmail question (Chris Wilkinson 2008)
  4. Re: [WebDNA] showif/sendmail question (Donovan Brooke 2008)
  5. Re: [WebDNA] showif/sendmail question ("Dan Strong" 2008)
  6. Re: [WebDNA] showif/sendmail question ("Dan Strong" 2008)
  7. Re: [WebDNA] showif/sendmail question (Terry Wilson 2008)
  8. Re: [WebDNA] showif/sendmail question ("cw@e-wave.net" 2008)
one thing to try, make the from a known email address ie. webserver@here.com and then put the subject and then put reply-to=[membersemailaddress] it seems the mail sending engine is picky about valid email addresses in the to and from fields. Brian B. Burton brian@burtons.com "For a list of the ways in which technology has failed to improve our quality of life, press 3." On Aug 4, 2008, at 11:10 AM, Chris Wilkinson wrote: > Thanks for the responses... I thought that I would try for a simple > syntax > error before going into detail. > > So here's the what's happening... Site members login and submit a > request > form. Options on the form vary based on [member] level using the > [showif], > and this seems to work well. > > What I am attempting with this code, is to email the submitted data to > varying people/departments based on the membership level - this is > stored in > the prefs.db. eg. If member1, then email to dept1@yourco.com > > The specific error that I was seeing in the log was "bad email > address", but > when I put the [lookup db=prefs.db... In the page, it pulled the > exactly > correct email. > > I'm betting that there is a better way to accomplish this, but would > still > like to understand why this failed. > > Any suggestions are appreciated... Thanks in advance. > -Chris > > On 8/1/08 5:01 PM, "Donovan Brooke" wrote: > >> cw@e-wave.net wrote: >>> Greetings, >>> >>> Any idea why won't this code work? Each element [showif, sendmail, >>> lookup, formvariables] works fine separately, but not together... >> >> >> I would ask the same as Terry.. what is happening? >> >> I don't notice any syntax errors with the code itself.. however, >> code is hard to troubleshoot when out of its context. I just >> changed one thing to allow for hiding if the email is blank: >> >> [showif member^[type]] >> [text]toemail=[lookup >> db=prefs.db&lookinfield=pref&value=EMAIL_CC&returnfield=value][/text] >> [hideif [url][toemail][/url]=] >> [sendmail to=[toemail]&from=[convertchars >> db=convert_quotes.db][EMAIL][/convertchars]t&subject= Request] >> [formvariables name=__&exact=f] >> [getchars start=3][name][/getchars]: [value] >> [/formvariables] >> [/sendmail] >> [/hideif] >> [/showif] >> >> >> However, if you know your .db records have accurate emails, then >> you wouldn't have to do that check. >> >> Donovan >> >> >> >> >> >> >> >> > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > Brian B. Burton brian@burtons.com "For a list of the ways in which technology has failed to improve our quality of life, press 3." "Brian B. Burton"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Maybe off topic but how to charge (1997) pop up menu's (1998) Next (1997) How would I? (2000) emailer on Windows Beta 18 (1997) Orderfile Info is Dissappearing (1998) [WebDNA] Is a '.webdna' suffix better? (2008) SetLineItem (1997) Need relative path explanation (1997) Counting downloads (1998) Authenticate (1997) how do I have html files routed through webcat on OSX? (2001) WebMerchant? (1998) RE: [taxRate] [TaxTotal] ? (1997) Pulldown Menu (2000) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Repeating Fields (1997) synching databases on multiple servers (1997) Text limits in NT version? (1997) lookups (2000)