Re: [WebDNA] multi [sendmail] inside [search]

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 109293
interpreted = N
texte = There must be something wrong with your real code, unless it's a temporary glitch that requires a reboot to clear it up. First reboot the server, then try your original code again to see if it's working the way it should. If not, try this as a test: [search db=../login/website_users.db& code..blah..code...] [writefile testNumfound][numfound][/writefile] [founditems] code..blah..code... [showif code..blah..code... [loop start=[ code..blah..code...] [text] message = [showif code..blah..code... [/showif] [/text] [/loop] [/showif] [writefile testFounditemStart[index]][message][/writefile] [sendmail to=timeclock@domain.com&from=Webpage@domain.com&subject=Staff Over 40 message (no reply)&content-type=text/html] [message] [/sendmail] [writefile testFounditemEnd[index]][message][/writefile] code..blah..code... [/founditems] [/search] ... then see if the content of the testNumfound file matches the number of testFounditemStart and testFounditemEnd files -- and check the content of these files to be sure they contain the correct message. Sincerely, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com WebDNA Programming and Linux Server Administration > On Jul 13, 2012, at 10:04 AM, WebDNA Solutions wrote: > >> The problem is, WebDNA doesn't like using a [sendmail] > >> tag inside of a [search...][founditems] routine. > > > > Of course it does, I've been doing this for years. > > What seems to be the problem that causes you to say > > this? > > The simple problem is that it won't work... > Here's a sample.... > > [search db=../login/website_users.db& > code..blah..code...] [founditems] > code..blah..code... > [showif code..blah..code... > [loop start=[ code..blah..code...] > [text] message = > [showif code..blah..code... > [/showif] > [/text] > [/loop] > [/showif] >  [sendmail > to=timeclock@domain.com&from=Webpage@domain.com&subject= > Staff Over 40 message (no reply)&content-type=text/html] > [message] > [/sendmail] > code..blah..code... > [/founditems] > [/search] > > But this does work, but with only the last item found.... > > [search db=../login/website_users.db& > code..blah..code...] [founditems] > code..blah..code... > [showif code..blah..code... > [loop start=[ code..blah..code...] > [text] message = > [showif code..blah..code... > [/showif] > [/text] > [/loop] > [/showif] > code..blah..code... > [/founditems] > [/search] > > [sendmail to=timeclock@domain.com&from=Webpage@ > domain.com&subject=Staff Over 40 message (no > reply)&content-type=text/html] [message] > [/sendmail] > > > Sincerely, > > Kenneth Grome > > WebDNA Solutions > > http://www.webdnasolutions.com > > WebDNA Programming and Linux Server Administration > > > > ------------------------------------------------------- > > -- This message is sent to you because you are > > subscribed to the mailing list . > > To unsubscribe, E-mail to: > > archives: http://mail.webdna.us/list/talk@webdna.us > > Bug Reporting: support@webdna.us > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] multi [sendmail] inside [search] (WebDNA Solutions 2012)
  2. Re: [WebDNA] multi [sendmail] inside [search] ("Terry Wilson" 2012)
  3. Re: [WebDNA] multi [sendmail] inside [search] (Stephen Braun 2012)
  4. Re: [WebDNA] multi [sendmail] inside [search] (William DeVaul 2012)
  5. Re: [WebDNA] multi [sendmail] inside [search] ("Terry Wilson" 2012)
  6. Re: [WebDNA] multi [sendmail] inside [search] (Govinda 2012)
  7. Re: [WebDNA] multi [sendmail] inside [search] (Stephen Braun 2012)
  8. Re: [WebDNA] multi [sendmail] inside [search] (Terry Wilson 2012)
  9. Re: [WebDNA] multi [sendmail] inside [search] (Stephen Braun 2012)
  10. Re: [WebDNA] multi [sendmail] inside [search] (WebDNA Solutions 2012)
  11. Re: [WebDNA] multi [sendmail] inside [search] (Stuart Tremain 2012)
  12. Re: [WebDNA] multi [sendmail] inside [search] (Stuart Tremain 2012)
  13. Re: [WebDNA] multi [sendmail] inside [search] (Govinda 2012)
  14. Re: [WebDNA] multi [sendmail] inside [search] (Terry Wilson 2012)
  15. Re: [WebDNA] multi [sendmail] inside [search] (Stephen Braun 2012)
  16. Re: [WebDNA] multi [sendmail] inside [search] (Stephen Braun 2012)
  17. RE: [WebDNA] multi [sendmail] inside [search] ("Michael A. DeLorenzo" 2012)
  18. Re: [WebDNA] multi [sendmail] inside [search] (Govinda 2012)
  19. Re: [WebDNA] multi [sendmail] inside [search] (WebDNA Solutions 2012)
  20. Re: [WebDNA] multi [sendmail] inside [search] (Tom Duke 2012)
  21. Re: [WebDNA] multi [sendmail] inside [search] (Stephen Braun 2012)
  22. Re: [WebDNA] multi [sendmail] inside [search] (WebDNA Solutions 2012)
  23. [WebDNA] multi [sendmail] inside [search] (Stephen Braun 2012)
There must be something wrong with your real code, unless it's a temporary glitch that requires a reboot to clear it up. First reboot the server, then try your original code again to see if it's working the way it should. If not, try this as a test: [search db=../login/website_users.db& code..blah..code...] [writefile testNumfound][numfound][/writefile] [founditems] code..blah..code... [showif code..blah..code... [loop start=[ code..blah..code...] [text] message = [showif code..blah..code... [/showif] [/text] [/loop] [/showif] [writefile testFounditemStart[index]][message][/writefile] [sendmail to=timeclock@domain.com&from=Webpage@domain.com&subject=Staff Over 40 message (no reply)&content-type=text/html] [message] [/sendmail] [writefile testFounditemEnd[index]][message][/writefile] code..blah..code... [/founditems] [/search] ... then see if the content of the testNumfound file matches the number of testFounditemStart and testFounditemEnd files -- and check the content of these files to be sure they contain the correct message. Sincerely, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com WebDNA Programming and Linux Server Administration > On Jul 13, 2012, at 10:04 AM, WebDNA Solutions wrote: > >> The problem is, WebDNA doesn't like using a [sendmail] > >> tag inside of a [search...][founditems] routine. > > > > Of course it does, I've been doing this for years. > > What seems to be the problem that causes you to say > > this? > > The simple problem is that it won't work... > Here's a sample.... > > [search db=../login/website_users.db& > code..blah..code...] [founditems] > code..blah..code... > [showif code..blah..code... > [loop start=[ code..blah..code...] > [text] message = > [showif code..blah..code... > [/showif] > [/text] > [/loop] > [/showif] >  [sendmail > to=timeclock@domain.com&from=Webpage@domain.com&subject= > Staff Over 40 message (no reply)&content-type=text/html] > [message] > [/sendmail] > code..blah..code... > [/founditems] > [/search] > > But this does work, but with only the last item found.... > > [search db=../login/website_users.db& > code..blah..code...] [founditems] > code..blah..code... > [showif code..blah..code... > [loop start=[ code..blah..code...] > [text] message = > [showif code..blah..code... > [/showif] > [/text] > [/loop] > [/showif] > code..blah..code... > [/founditems] > [/search] > > [sendmail to=timeclock@domain.com&from=Webpage@ > domain.com&subject=Staff Over 40 message (no > reply)&content-type=text/html] [message] > [/sendmail] > > > Sincerely, > > Kenneth Grome > > WebDNA Solutions > > http://www.webdnasolutions.com > > WebDNA Programming and Linux Server Administration > > > > ------------------------------------------------------- > > -- This message is sent to you because you are > > subscribed to the mailing list . > > To unsubscribe, E-mail to: > > archives: http://mail.webdna.us/list/talk@webdna.us > > Bug Reporting: support@webdna.us > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us WebDNA Solutions

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:

Authorize.net setup (2002) Trouble with formula.db (1997) Is QuidProQuo dead? (1998) apparent variable variable display? (2000) emailer error -108 (1997) HELP..Changing Price after adding to cart. (1999) webcat2b12 CGI -- Date comparisons (1997) search not executing from a post, but works fine with (2004) Security Question (1997) frames & carts (1997) Re:multiple digests, please stop (1997) [price] maddness (2002) 2.0Beta Command Ref (can't find this instruction) (1997) WebCatalog 4.0.1 has been released! (2000) Can't Update records (1997) [WebDNA] Webcatalog folder missing on a Windows Server installation. (2017) What am I missing (1997) PSC recommends what date format yr 2000??? (1997) Looking for WebDNA calendar (2004) Saving Text Areas with Orders (1997)