Re: [WebDNA] multi [sendmail] inside [search]
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 109301
interpreted = N
texte = Hi Stephen,=46irst of all, I think Micheal DeLorenzo's=20solution is the best for all the reasons he=20mentioned.That said, like others who have chimed in, I've=20been using sendmail within searches for years.=20How else to insert record-based info?You did not give us your code, only shorthand=20like "code..blah..code..." which isn't useful.=20It's probable that we can find your error if you=20would give us the actual code.Terry>Kenneth,>>Here is my test code.>It does both of your [writefile] commands=20>perfectly, with several of my test employees,=20>but does not do the [sendmail] in between.>I was told that it is because the [sendmail] is inside of the [search]>> [writefile testFounditemStart[index]][message_total_hours][/writefile]> [sendmail=20>to=3Dsbraun1@twcny.rr.com&from=3DWebpage@mydomain.com&subject=3DTest=20>Over 40 message (no=20>reply)&content-type=3Dtext/html]=A0=A0=A0=A0=A0> [message_total_hours]=A0> [/sendmail]> [writefile testFounditemEnd[index]][message_total_hours][/writefile]>>I don't have access to the server to check any=20>of the settings, or know the platform.>>>>>>On Jul 13, 2012, at 11:07 AM, WebDNA Solutions wrote:>>> There must be something wrong with your real code,>> unless it's a temporary glitch that requires a reboot>> to clear it up.=A0>>>> 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:=A0=A0=A0=A0=A0=A0=A0>>>> [search db=3D../login/website_users.db& code..blah..code...]>>>> [writefile testNumfound][numfound][/writefile]>>>> [founditems]=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0>> code..blah..code...>> [showif code..blah..code...>> [loop start=3D[=20>>code..blah..code...]=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0==A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0==A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0==A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0==A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0==A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0>> [text] message =3D>> [showif code..blah..code...>> [/showif]>> [/text]>> [/loop]>> [/showif]=A0=A0>>>> [writefile testFounditemStart[index]][message][/writefile]>>>> [sendmail>> to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&subject=3DStaff Over>> 40 message (no reply)&content-type=3Dtext/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.=A0>>>> 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=3D../login/website_users.db&>>> code..blah..code...] [founditems]>>>code..blah..code...>>>[showif code..blah..code...>>>[loop start=3D[ code..blah..code...]>>>[text] message =3D>>>[showif code..blah..code...>>>[/showif]>>>[/text]>>>[/loop]>>>[/showif]>>> [sendmail>>> to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&subject=3D>>> Staff Over 40 message (no reply)&content-type=3Dtext/html]>>> [message]>>>[/sendmail]>>>code..blah..code...>>>[/founditems]>>>[/search]>>>>>> But this does work, but with only the last item found....>>>>>>[search db=3D../login/website_users.db&> >> code..blah..code...] [founditems]>>>code..blah..code...>>>[showif code..blah..code...>>>[loop start=3D[ code..blah..code...]>>>[text] message =3D>>>[showif code..blah..code...>>>[/showif]>>>[/text]>>>[/loop]>>>[/showif]>>>code..blah..code...>>>[/founditems]>>>[/search]>>>>>> [sendmail to=3Dtimeclock@domain.com&from=3DWebpage@>>> domain.com&subject=3DStaff Over 40 message (no>>> reply)&content-type=3Dtext/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>> --------------------------------------------------------->> 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-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemiStockPhoto portfolio - http://www.istockphoto.com/Terryfic3D?refnum=3DTerry=fic3D--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.
Associated Messages, from the most recent to the oldest:
Hi Stephen,=46irst of all, I think Micheal DeLorenzo's=20solution is the best for all the reasons he=20mentioned.That said, like others who have chimed in, I've=20been using sendmail within searches for years.=20How else to insert record-based info?You did not give us your code, only shorthand=20like "code..blah..code..." which isn't useful.=20It's probable that we can find your error if you=20would give us the actual code.Terry>Kenneth,>>Here is my test code.>It does both of your [writefile] commands=20>perfectly, with several of my test employees,=20>but does not do the [sendmail] in between.>I was told that it is because the [sendmail] is inside of the [search]>> [writefile testFounditemStart[index]][message_total_hours][/writefile]> [sendmail=20>to=3Dsbraun1@twcny.rr.com&from=3DWebpage@mydomain.com&subject=3DTest=20>Over 40 message (no=20>reply)&content-type=3Dtext/html]=A0=A0=A0=A0=A0> [message_total_hours]=A0> [/sendmail]> [writefile testFounditemEnd[index]][message_total_hours][/writefile]>>I don't have access to the server to check any=20>of the settings, or know the platform.>>>>>>On Jul 13, 2012, at 11:07 AM, WebDNA Solutions wrote:>>> There must be something wrong with your real code,>> unless it's a temporary glitch that requires a reboot>> to clear it up.=A0>>>> 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:=A0=A0=A0=A0=A0=A0=A0>>>> [search db=3D../login/website_users.db& code..blah..code...]>>>> [writefile testNumfound][numfound][/writefile]>>>> [founditems]=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0>> code..blah..code...>> [showif code..blah..code...>> [loop start=3D[=20>>code..blah..code...]=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0==A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0==A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0==A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0==A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0==A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0>> [text] message =3D>> [showif code..blah..code...>> [/showif]>> [/text]>> [/loop]>> [/showif]=A0=A0>>>> [writefile testFounditemStart[index]][message][/writefile]>>>> [sendmail>> to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&subject=3DStaff Over>> 40 message (no reply)&content-type=3Dtext/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.=A0>>>> 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=3D../login/website_users.db&>>> code..blah..code...] [founditems]>>>code..blah..code...>>>[showif code..blah..code...>>>[loop start=3D[ code..blah..code...]>>>[text] message =3D>>>[showif code..blah..code...>>>[/showif]>>>[/text]>>>[/loop]>>>[/showif]>>> [sendmail>>> to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&subject=3D>>> Staff Over 40 message (no reply)&content-type=3Dtext/html]>>> [message]>>>[/sendmail]>>>code..blah..code...>>>[/founditems]>>>[/search]>>>>>> But this does work, but with only the last item found....>>>>>>[search db=3D../login/website_users.db&> >> code..blah..code...] [founditems]>>>code..blah..code...>>>[showif code..blah..code...>>>[loop start=3D[ code..blah..code...]>>>[text] message =3D>>>[showif code..blah..code...>>>[/showif]>>>[/text]>>>[/loop]>>>[/showif]>>>code..blah..code...>>>[/founditems]>>>[/search]>>>>>> [sendmail to=3Dtimeclock@domain.com&from=3DWebpage@>>> domain.com&subject=3DStaff Over 40 message (no>>> reply)&content-type=3Dtext/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>> --------------------------------------------------------->> 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-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemiStockPhoto portfolio - http://www.istockphoto.com/Terryfic3D?refnum=3DTerry=fic3D--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.
Terry Wilson
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:
WebCat vs. ASP (1999)
webcat- multiple selection in input field (1997)
Email (1998)
Database Fields (1997)
quantity [addlineitem] (2001)
searchable list archive (1997)
notification solutions (1997)
ShowIf variables (1997)
[WebDNA] Mondy morn... [date] question (2009)
FW: I'll Know If You Don't Read This (2006)
Help name our technology! (1997)
WebCat2 beta 11 - new prefs ... (1997)
Assigning new CART number (1997)
date pref (1999)
Changing user submitted data (2000)
Lost Field (1998)
[append] problems (2003)
[OT] Half completed orders (2005)
New Web Site Developers Database (1996)
WebDNA Feature Request (2006)