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. Burtonbrian@burtons.com"For a list of the ways in which technology has failed toimprove 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. Burtonbrian@burtons.com"For a list of the ways in which technology has failed toimprove our quality of life, press 3."
Associated Messages, from the most recent to the oldest:
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. Burtonbrian@burtons.com"For a list of the ways in which technology has failed toimprove 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. Burtonbrian@burtons.com"For a list of the ways in which technology has failed toimprove 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:
Multiple download orders of the same product? (1997)
[input] questions (1997)
Donovans Theorem (2003)
More than one db with the same namn (was: WC2f3) (1997)
WebCat2b15MacPlugin - [protect] (1997)
Forwarding Orders Via Email (1998)
Security Issues and WebCommerce Solution (1997)
Logging purchases (1997)
Date Bug (1998)
Search-context (1999)
[WebDNA] Hmmm ... (2008)
CC: (1998)
Upgrading old WebCat Database Files (1997)
[WriteFile] problems (1997)
WebCatalog2 Feature Feedback (1996)
Fedora Core 2 (2005)
Email encryption (1998)
form ENCTYPE confusion [correction] (2003)
executive server side java within webDNA (1997)
FAX solutions? (2001)