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:

WebCommerce: Folder organization ? (1997) Math with Time (1997) TCP Connect (2000) Help: sorting in found set. (2001) More questions about serial number dishing (1997) RE: [WebDNA] How to valuate a domain name? (2010) customer info (2001) New user...how do I create URLs from form fields? (2000) How many lookups does it take ... (2003) question: Eudora 3.1.1 (1997) upgrading (1997) creating a ShipCosts database (1997) Page Counters? (1997) New Command prefs ... (1997) Fwd: Problems with Webcatalog Plug-in (1997) Extra carriage returns (1999) SiteGuard Admin Feature ? (1997) SSL and WebCatalog (1997) sort without the or a (1998) Forbidden CGI Error (1997)