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

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 109308
interpreted = N
texte = I routinely send out emails with much longer subject lines. The same for the to and from fields. As Ken noted in an earlier email, a bogus FROM address is problematic. I know I can't put a bogus FROM address and expect it to work. Hope that helps. Terry On Jul 14, 2012, at 10:30 AM, Stephen Braun wrote: > Thanks to all of you who have tried to help me with this. > I have tested my code literally 100 times and here is what I've found. > > The [sendmail] won't work if the 'to' address, or the 'from' > address, or the 'subject line' has too many characters. > It works fine when the subject line is 7 characters, but not 8. > It works fine when the 'to' or 'from' domain is 12 characters, but > not when it is 23 characters. > > Unfortunately, the domain name is 23 characters. > > Would this be a setting that my host has set up in his email control > panel? > > Thanks again to all of you who wrote back to me. > Steve Braun > > > > > > On Jul 13, 2012, at 11:13 PM, WebDNA Solutions wrote: > >>> It does both of your [writefile] commands perfectly, with >>> several of my test employees, but does not do the >>> [sendmail] in between. >> >> How are you determining that the [sendmail] context is (or >> is not) writing the appropriate files to disk from inside the >> founditems context? >> >> Are you checking the contents of the EMailProblem and >> EMailCompleted folders to see which folder the mail files are >> in? >> >> Or are you assuming that the mail files are not being written >> to disk simply because you fail to receive the email >> messages in your inbox within a reasonable time? >> >> What happens when you use a valid "From" address instead of >> the bogus "From" address you're using now? Some mail >> servers reject mail sent from a bogus "From" address. >> >> What does the "Email Log.txt" file say about these emails? >> >> >>> I was told that it is because the [sendmail] is inside of >>> the [search]. >> >> Who told you this? Is it the same person who is hosting >> your site? >> >> Whoever told you this is giving you bad advice. He needs to >> learn how WebDNA really works before passing out any more >> bad advice. >> >> If it's the same person who is hosting your site he needs to >> give you the data you request in order to debug this >> problem, too. >> >> >>> I don't have access to the server to check any of the >>> settings, or know the platform. >> >> Try using [platform] and you'll know what the platform is. >> Also try [version] to learn which version of WebDNA is >> running. >> >> At the very least your host should give you access to the >> Email Log.txt file, or send you a list of the [sendmail] files >> you're creating from inside the founditems context. >> >> ------------ >> >> My guess is that the mail files are being written but not >> being sent, which means they are being moved to the >> EMailProblem folder. Of course you need access to this >> folder in order to check and confirm this theory ... >> >> Sincerely, >> Kenneth Grome >> WebDNA Solutions >> http://www.webdnasolutions.com >> WebDNA Programming and Linux Server Administration >> >> >> >> >> >> >> >> >>> Kenneth, >>> >>> Here is my test code. >>> It does both of your [writefile] commands perfectly, with >>> several of my test employees, 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][/writefi >>> le] [sendmail >>> to=sbraun1@twcny.rr.com&from=Webpage@mydomain.com&subjec >>> t=Test Over 40 message (no reply)&content-type=text/html] >>> [message_total_hours] >>> [/sendmail] >>> [writefile >>> testFounditemEnd[index]][message_total_hours][/writefile >>> ] >>> >>> I don't have access to the server to check any 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. >>>> >>>> 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&subjec >>>>> t= 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 >>>> >>>> ------------------------------------------------------- >>>> -- 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 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)
I routinely send out emails with much longer subject lines. The same for the to and from fields. As Ken noted in an earlier email, a bogus FROM address is problematic. I know I can't put a bogus FROM address and expect it to work. Hope that helps. Terry On Jul 14, 2012, at 10:30 AM, Stephen Braun wrote: > Thanks to all of you who have tried to help me with this. > I have tested my code literally 100 times and here is what I've found. > > The [sendmail] won't work if the 'to' address, or the 'from' > address, or the 'subject line' has too many characters. > It works fine when the subject line is 7 characters, but not 8. > It works fine when the 'to' or 'from' domain is 12 characters, but > not when it is 23 characters. > > Unfortunately, the domain name is 23 characters. > > Would this be a setting that my host has set up in his email control > panel? > > Thanks again to all of you who wrote back to me. > Steve Braun > > > > > > On Jul 13, 2012, at 11:13 PM, WebDNA Solutions wrote: > >>> It does both of your [writefile] commands perfectly, with >>> several of my test employees, but does not do the >>> [sendmail] in between. >> >> How are you determining that the [sendmail] context is (or >> is not) writing the appropriate files to disk from inside the >> founditems context? >> >> Are you checking the contents of the EMailProblem and >> EMailCompleted folders to see which folder the mail files are >> in? >> >> Or are you assuming that the mail files are not being written >> to disk simply because you fail to receive the email >> messages in your inbox within a reasonable time? >> >> What happens when you use a valid "From" address instead of >> the bogus "From" address you're using now? Some mail >> servers reject mail sent from a bogus "From" address. >> >> What does the "Email Log.txt" file say about these emails? >> >> >>> I was told that it is because the [sendmail] is inside of >>> the [search]. >> >> Who told you this? Is it the same person who is hosting >> your site? >> >> Whoever told you this is giving you bad advice. He needs to >> learn how WebDNA really works before passing out any more >> bad advice. >> >> If it's the same person who is hosting your site he needs to >> give you the data you request in order to debug this >> problem, too. >> >> >>> I don't have access to the server to check any of the >>> settings, or know the platform. >> >> Try using [platform] and you'll know what the platform is. >> Also try [version] to learn which version of WebDNA is >> running. >> >> At the very least your host should give you access to the >> Email Log.txt file, or send you a list of the [sendmail] files >> you're creating from inside the founditems context. >> >> ------------ >> >> My guess is that the mail files are being written but not >> being sent, which means they are being moved to the >> EMailProblem folder. Of course you need access to this >> folder in order to check and confirm this theory ... >> >> Sincerely, >> Kenneth Grome >> WebDNA Solutions >> http://www.webdnasolutions.com >> WebDNA Programming and Linux Server Administration >> >> >> >> >> >> >> >> >>> Kenneth, >>> >>> Here is my test code. >>> It does both of your [writefile] commands perfectly, with >>> several of my test employees, 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][/writefi >>> le] [sendmail >>> to=sbraun1@twcny.rr.com&from=Webpage@mydomain.com&subjec >>> t=Test Over 40 message (no reply)&content-type=text/html] >>> [message_total_hours] >>> [/sendmail] >>> [writefile >>> testFounditemEnd[index]][message_total_hours][/writefile >>> ] >>> >>> I don't have access to the server to check any 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. >>>> >>>> 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&subjec >>>>> t= 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 >>>> >>>> ------------------------------------------------------- >>>> -- 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

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:

RE: strip .0 off off IPaddress (1999) WebCat2b13MacPlugIn - More limits on [include] (1997) [DOS]/DOS query perhaps OT (2003) [WebDNA] Bug in [thisurlplusget] on v7 (2011) Problems appending to database (1997) Why is my easy [AddLineItems] NOT working?? (2000) Problems setting MIME Headers (1998) Emailer program? (2000) Replace with Producteditor.tpl (2000) Calculating multiple shipping... (1997) RE: Questions To Answer (1997) [WebDNA] Help me install WebDNA (2012) OFF TOPIC: help wanted (1997) Newbie problem blah blah blah (1997) [include] affect on filepaths for links? (1997) Cookies (1999) Great product and great job ! (1997) Passing Variables.. yikes, I'm dumb (2000) OT?: Size issues (2001) Separate SSL Server (1997)