Re: [WebDNA] multi [sendmail] inside [search]
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 109309
interpreted = N
texte = --Apple-Mail-1-1071496772Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiThanks Terry, I know about the bogus FROM address, and I am using the =same FROM address that works in several other places, but doesn't work =here, because it's too long..Here is what I'm seeing if I use too many characters....What should be:[sendmail =to=3Dsteve@fausttheatre.org&from=3Dsteve@fausttheatre.org&subject=3D123456=7&content-type=3Dtext/html]Looks like this:endmail =to=3Dsteve@fausttheatre.org&from=3Dsteve@fausttheatre.org&subject=3D123456=78&content-type=3Dtext/html]The first two characters are being truncated from my code if I put the 8 =in the subject line.This has got me stumped.On Jul 14, 2012, at 1:53 PM, Terry Wilson wrote:> 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.>=20> Hope that helps.>=20> Terry> On Jul 14, 2012, at 10:30 AM, Stephen Braun wrote:>=20>> 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.>>=20>> 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.>>=20>> Unfortunately, the domain name is 23 characters.>>=20>> Would this be a setting that my host has set up in his email control =panel?>>=20>> Thanks again to all of you who wrote back to me.>> Steve Braun>>=20>>=20>>=20>>=20>>=20>> On Jul 13, 2012, at 11:13 PM, WebDNA Solutions wrote:>>=20>>>> It does both of your [writefile] commands perfectly, with>>>> several of my test employees, but does not do the>>>> [sendmail] in between.>>>=20>>> How are you determining that the [sendmail] context is (or>>> is not) writing the appropriate files to disk from inside the>>> founditems context?>>>=20>>> Are you checking the contents of the EMailProblem and>>> EMailCompleted folders to see which folder the mail files are>>> in?>>>=20>>> 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?>>>=20>>> 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.>>>=20>>> What does the "Email Log.txt" file say about these emails?>>>=20>>>=20>>>> I was told that it is because the [sendmail] is inside of>>>> the [search].>>>=20>>> Who told you this? Is it the same person who is hosting>>> your site?>>>=20>>> Whoever told you this is giving you bad advice. He needs to>>> learn how WebDNA really works before passing out any more>>> bad advice.>>>=20>>> 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.>>>=20>>>=20>>>> I don't have access to the server to check any of the>>>> settings, or know the platform.>>>=20>>> Try using [platform] and you'll know what the platform is.>>> Also try [version] to learn which version of WebDNA is>>> running.>>>=20>>> 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.>>>=20>>> ------------>>>=20>>> 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 ...>>>=20>>> Sincerely,>>> Kenneth Grome>>> WebDNA Solutions>>> http://www.webdnasolutions.com>>> WebDNA Programming and Linux Server Administration>>>=20>>>=20>>>=20>>>=20>>>=20>>>=20>>>=20>>>=20>>>> Kenneth,>>>>=20>>>> 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]>>>>=20>>>> [writefile>>>> testFounditemStart[index]][message_total_hours][/writefi>>>> le] [sendmail>>>> to=3Dsbraun1@twcny.rr.com&from=3DWebpage@mydomain.com&subjec>>>> t=3DTest Over 40 message (no reply)&content-type=3Dtext/html]>>>> [message_total_hours]>>>> [/sendmail]>>>> [writefile>>>> testFounditemEnd[index]][message_total_hours][/writefile>>>> ]>>>>=20>>>> I don't have access to the server to check any of the>>>> settings, or know the platform.>>>>=20>>>> 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.>>>>>=20>>>>> 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:>>>>>=20>>>>> [search db=3D../login/website_users.db&>>>>> code..blah..code...]>>>>>=20>>>>> [writefile testNumfound][numfound][/writefile]>>>>>=20>>>>> [founditems]>>>>> code..blah..code...>>>>> [showif code..blah..code...>>>>>=20>>>>> [loop start=3D[>>>>> code..blah..code...]>>>>>=20>>>>> [text] message =3D>>>>>=20>>>>> [showif>>>>>=20>>> code..blah..code..>>>>> . [/showif]>>>>>=20>>>>> [/text]>>>>>=20>>>>> [/loop]>>>>>=20>>>>> [/showif]>>>>>=20>>>>> [writefile>>>>> testFounditemStart[index]][message][/writefile]>>>>>=20>>>>> [sendmail>>>>>=20>>>>> to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&subject>>>>> =3DStaff Over 40 message (no>>>>> reply)&content-type=3Dtext/html]>>>>>=20>>>>> [message]>>>>>=20>>>>> [/sendmail]>>>>>=20>>>>> [writefile>>>>> testFounditemEnd[index]][message][/writefile]>>>>>=20>>>>> code..blah..code...>>>>> [/founditems]>>>>>=20>>>>> [/search]>>>>>=20>>>>> ... 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.>>>>>=20>>>>> Sincerely,>>>>> Kenneth Grome>>>>> WebDNA Solutions>>>>> http://www.webdnasolutions.com>>>>> WebDNA Programming and Linux Server Administration>>>>>=20>>>>>> 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.>>>>>>>=20>>>>>>> Of course it does, I've been doing this for years.>>>>>>> What seems to be the problem that causes you to say>>>>>>> this?>>>>>>=20>>>>>> The simple problem is that it won't work...>>>>>> Here's a sample....>>>>>>=20>>>>>> [search db=3D../login/website_users.db&>>>>>>=20>>>>>> code..blah..code...] [founditems]>>>>>>=20>>>>>> code..blah..code...>>>>>> [showif code..blah..code...>>>>>> =09>>>>>> [loop start=3D[ code..blah..code...]>>>>>> =09>>>>>> [text] message =3D>>>>>> =09>>>>>> [showif code..blah..code...>>>>>> [/showif]>>>>>> =09>>>>>> [/text]>>>>>> =09>>>>>> [/loop]>>>>>> =09>>>>>> [/showif]>>>>>> =09>>>>>> [sendmail>>>>>>=20>>>>>> to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&subjec>>>>>> t=3D Staff Over 40 message (no>>>>>> reply)&content-type=3Dtext/html] [message]>>>>>>=20>>>>>> [/sendmail]>>>>>> code..blah..code...>>>>>> [/founditems]>>>>>> =09>>>>>> [/search]>>>>>>=20>>>>>> But this does work, but with only the last item>>>>>> found....>>>>>>=20>>>>>> [search db=3D../login/website_users.db&>>>>>>=20>>>>>> code..blah..code...] [founditems]>>>>>>=20>>>>>> code..blah..code...>>>>>> [showif code..blah..code...>>>>>> =09>>>>>> [loop start=3D[ code..blah..code...]>>>>>> =09>>>>>> [text] message =3D>>>>>> =09>>>>>> [showif code..blah..code...>>>>>> [/showif]>>>>>> =09>>>>>> [/text]>>>>>> =09>>>>>> [/loop]>>>>>> =09>>>>>> [/showif]>>>>>> code..blah..code...>>>>>> [/founditems]>>>>>> =09>>>>>> [/search]>>>>>> =09>>>>>> [sendmail to=3Dtimeclock@domain.com&from=3DWebpage@>>>>>>=20>>>>>> domain.com&subject=3DStaff Over 40 message (no>>>>>> reply)&content-type=3Dtext/html] [message]>>>>>>=20>>>>>> [/sendmail]>>>>>> =09>>>>>>> Sincerely,>>>>>>> Kenneth Grome>>>>>>> WebDNA Solutions>>>>>>> http://www.webdnasolutions.com>>>>>>> WebDNA Programming and Linux Server Administration>>>>>>>=20>>>>>>> ----------------------------------------------------->>>>>>> -- -- 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>>>>>>=20>>>>>> ------------------------------------------------------>>>>>> --- 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>>>>>=20>>>>> ------------------------------------------------------->>>>> -- 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>>>>=20>>>> --------------------------------------------------------->>>> 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>>=20>> --------------------------------------------------------->> 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>=20> ---------------------------------------------------------> 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--Apple-Mail-1-1071496772Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiThanks Terry, I =know about the bogus FROM address, and I am using the same FROM address =that works in several other places, but doesn't work here, because it's =too long..
Here is what I'm seeing if I use too many =characters....
What should =be:
[sendmail =to=3Dsteve@fausttheatre.org&from=3Dsteve@fausttheatre.org&subject=3D1234567&content-type=3Dtext/html] =
Looks like this:
endmail =to=3Dsteve@fausttheatre.org&from=3Dsteve@fausttheatre.org&subject=3D12345678&content-type=3Dtext/html]
The first two characters are being truncated from =my code if I put the 8 in the subject =line.
This has got me stumped.
=
On Jul 14, 2012, at 1:53 PM, Terry Wilson wrote:
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=3Dsbraun1@twcny.rr.com&from=3DWebpage@mydomain.com&am=p;subjec
t=3DTest= Over 40 message (no =reply)&content-type=3Dtext/html]
[message_total_hours]
= &n=bsp;[/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=3D../login/website_users.db&
code..blah..code...]
[writefile =testNumfound][numfound][/writefile]
= [f=ounditems]
= co=de..blah..code...
<=blockquote type=3D"cite"> = [s=howif = code..blah..code...
= &n=bsp; [loop =start=3D[
= &n=bsp; code..blah..code...]
= &n=bsp; &nbs=p; [text] message ==3D
= &n=bsp; &nbs=p; [showi=f
code..blah..code..
= &n=bsp; &nbs=p; . =[/showif]
= &n=bsp; &nbs=p; [/text]
= &n=bsp; [/loop]
= [/=showif]
[writefile
testFounditemStart[index]][message][/writefile]
= [s=endmail
to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&=subject
=3DStaff Over 40 message =(no
reply)&content-type=3Dtext/html]
= &n=bsp; [message]
=blockquote>
= [/=sendmail]
[writefile
testFounditemEnd[index]][message][/writefile]
= co=de..blah..code...
<=blockquote type=3D"cite"> = [/=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
=blockquote>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]
=blockquote>=
=[/text]
=
=[/loop]
=
=[/showif]
=blockquote>=
= [sendmail
to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&=subjec
t=3D =Staff Over 40 message =(no
reply)&content-type=3Dtext/html] =[message]
=[/sendmail]
=
=code..blah..code...
=[/founditems]
=
=[/search]
=blockquote>
But =this does work, but with only the last =item
<=blockquote type=3D"cite">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]
=blockquote>=
=[/text]
=
=[/loop]
=
=[/showif]
=blockquote>=code..blah..code...
=[/founditems]
=
=[/search]
=blockquote>=
= [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
=blockquote>subscribed to the mailing list =<talk@webdna.us>. =To
unsubscribe, E-mail to: <talk-leave@webdna.us>
<=blockquote type=3D"cite">archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug =Reporting: support@webdna.us
=blockquote>
------------------------------------------------------
=blockquote>
--- =This message is sent to you because you =are
subscribed to the mailing list <talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
=blockquote>
-------------------------------------------------------
<=/blockquote>
-- This message is sent to you =because you =are
subscribed to the mailing list =<talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
=blockquote>
---------------------------------------------------------
This =message is sent to you because you are subscribed =to
the =mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: =<talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug =Reporting: support@webdna.us
=blockquote>
---------------------------------------------------------
This message is sent to you because you are subscribed =to
the mailing list <talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
=blockquote>
---------------------------------------------------------
This message is sent to you =because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug =Reporting: support@webdna.us
---------------------------------------------------------
This =message is sent to you because you are subscribed to
the mailing list =<talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archi=ves: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
=--Apple-Mail-1-1071496772--
Associated Messages, from the most recent to the oldest:
--Apple-Mail-1-1071496772Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiThanks Terry, I know about the bogus FROM address, and I am using the =same FROM address that works in several other places, but doesn't work =here, because it's too long..Here is what I'm seeing if I use too many characters....What should be:[sendmail =to=3Dsteve@fausttheatre.org&from=3Dsteve@fausttheatre.org&subject=3D123456=7&content-type=3Dtext/html]Looks like this:endmail =to=3Dsteve@fausttheatre.org&from=3Dsteve@fausttheatre.org&subject=3D123456=78&content-type=3Dtext/html]The first two characters are being truncated from my code if I put the 8 =in the subject line.This has got me stumped.On Jul 14, 2012, at 1:53 PM, Terry Wilson wrote:> 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.>=20> Hope that helps.>=20> Terry> On Jul 14, 2012, at 10:30 AM, Stephen Braun wrote:>=20>> 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.>>=20>> 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.>>=20>> Unfortunately, the domain name is 23 characters.>>=20>> Would this be a setting that my host has set up in his email control =panel?>>=20>> Thanks again to all of you who wrote back to me.>> Steve Braun>>=20>>=20>>=20>>=20>>=20>> On Jul 13, 2012, at 11:13 PM, WebDNA Solutions wrote:>>=20>>>> It does both of your [writefile] commands perfectly, with>>>> several of my test employees, but does not do the>>>> [sendmail] in between.>>>=20>>> How are you determining that the [sendmail] context is (or>>> is not) writing the appropriate files to disk from inside the>>> founditems context?>>>=20>>> Are you checking the contents of the EMailProblem and>>> EMailCompleted folders to see which folder the mail files are>>> in?>>>=20>>> 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?>>>=20>>> 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.>>>=20>>> What does the "Email Log.txt" file say about these emails?>>>=20>>>=20>>>> I was told that it is because the [sendmail] is inside of>>>> the [search].>>>=20>>> Who told you this? Is it the same person who is hosting>>> your site?>>>=20>>> Whoever told you this is giving you bad advice. He needs to>>> learn how WebDNA really works before passing out any more>>> bad advice.>>>=20>>> 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.>>>=20>>>=20>>>> I don't have access to the server to check any of the>>>> settings, or know the platform.>>>=20>>> Try using [platform] and you'll know what the platform is.>>> Also try [version] to learn which version of WebDNA is>>> running.>>>=20>>> 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.>>>=20>>> ------------>>>=20>>> 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 ...>>>=20>>> Sincerely,>>> Kenneth Grome>>> WebDNA Solutions>>> http://www.webdnasolutions.com>>> WebDNA Programming and Linux Server Administration>>>=20>>>=20>>>=20>>>=20>>>=20>>>=20>>>=20>>>=20>>>> Kenneth,>>>>=20>>>> 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]>>>>=20>>>> [writefile>>>> testFounditemStart[index]][message_total_hours][/writefi>>>> le] [sendmail>>>> to=3Dsbraun1@twcny.rr.com&from=3DWebpage@mydomain.com&subjec>>>> t=3DTest Over 40 message (no reply)&content-type=3Dtext/html]>>>> [message_total_hours]>>>> [/sendmail]>>>> [writefile>>>> testFounditemEnd[index]][message_total_hours][/writefile>>>> ]>>>>=20>>>> I don't have access to the server to check any of the>>>> settings, or know the platform.>>>>=20>>>> 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.>>>>>=20>>>>> 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:>>>>>=20>>>>> [search db=3D../login/website_users.db&>>>>> code..blah..code...]>>>>>=20>>>>> [writefile testNumfound][numfound][/writefile]>>>>>=20>>>>> [founditems]>>>>> code..blah..code...>>>>> [showif code..blah..code...>>>>>=20>>>>> [loop start=3D[>>>>> code..blah..code...]>>>>>=20>>>>> [text] message =3D>>>>>=20>>>>> [showif>>>>>=20>>> code..blah..code..>>>>> . [/showif]>>>>>=20>>>>> [/text]>>>>>=20>>>>> [/loop]>>>>>=20>>>>> [/showif]>>>>>=20>>>>> [writefile>>>>> testFounditemStart[index]][message][/writefile]>>>>>=20>>>>> [sendmail>>>>>=20>>>>> to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&subject>>>>> =3DStaff Over 40 message (no>>>>> reply)&content-type=3Dtext/html]>>>>>=20>>>>> [message]>>>>>=20>>>>> [/sendmail]>>>>>=20>>>>> [writefile>>>>> testFounditemEnd[index]][message][/writefile]>>>>>=20>>>>> code..blah..code...>>>>> [/founditems]>>>>>=20>>>>> [/search]>>>>>=20>>>>> ... 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.>>>>>=20>>>>> Sincerely,>>>>> Kenneth Grome>>>>> WebDNA Solutions>>>>> http://www.webdnasolutions.com>>>>> WebDNA Programming and Linux Server Administration>>>>>=20>>>>>> 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.>>>>>>>=20>>>>>>> Of course it does, I've been doing this for years.>>>>>>> What seems to be the problem that causes you to say>>>>>>> this?>>>>>>=20>>>>>> The simple problem is that it won't work...>>>>>> Here's a sample....>>>>>>=20>>>>>> [search db=3D../login/website_users.db&>>>>>>=20>>>>>> code..blah..code...] [founditems]>>>>>>=20>>>>>> code..blah..code...>>>>>> [showif code..blah..code...>>>>>> =09>>>>>> [loop start=3D[ code..blah..code...]>>>>>> =09>>>>>> [text] message =3D>>>>>> =09>>>>>> [showif code..blah..code...>>>>>> [/showif]>>>>>> =09>>>>>> [/text]>>>>>> =09>>>>>> [/loop]>>>>>> =09>>>>>> [/showif]>>>>>> =09>>>>>> [sendmail>>>>>>=20>>>>>> to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&subjec>>>>>> t=3D Staff Over 40 message (no>>>>>> reply)&content-type=3Dtext/html] [message]>>>>>>=20>>>>>> [/sendmail]>>>>>> code..blah..code...>>>>>> [/founditems]>>>>>> =09>>>>>> [/search]>>>>>>=20>>>>>> But this does work, but with only the last item>>>>>> found....>>>>>>=20>>>>>> [search db=3D../login/website_users.db&>>>>>>=20>>>>>> code..blah..code...] [founditems]>>>>>>=20>>>>>> code..blah..code...>>>>>> [showif code..blah..code...>>>>>> =09>>>>>> [loop start=3D[ code..blah..code...]>>>>>> =09>>>>>> [text] message =3D>>>>>> =09>>>>>> [showif code..blah..code...>>>>>> [/showif]>>>>>> =09>>>>>> [/text]>>>>>> =09>>>>>> [/loop]>>>>>> =09>>>>>> [/showif]>>>>>> code..blah..code...>>>>>> [/founditems]>>>>>> =09>>>>>> [/search]>>>>>> =09>>>>>> [sendmail to=3Dtimeclock@domain.com&from=3DWebpage@>>>>>>=20>>>>>> domain.com&subject=3DStaff Over 40 message (no>>>>>> reply)&content-type=3Dtext/html] [message]>>>>>>=20>>>>>> [/sendmail]>>>>>> =09>>>>>>> Sincerely,>>>>>>> Kenneth Grome>>>>>>> WebDNA Solutions>>>>>>> http://www.webdnasolutions.com>>>>>>> WebDNA Programming and Linux Server Administration>>>>>>>=20>>>>>>> ----------------------------------------------------->>>>>>> -- -- 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>>>>>>=20>>>>>> ------------------------------------------------------>>>>>> --- 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>>>>>=20>>>>> ------------------------------------------------------->>>>> -- 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>>>>=20>>>> --------------------------------------------------------->>>> 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>>=20>> --------------------------------------------------------->> 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>=20> ---------------------------------------------------------> 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--Apple-Mail-1-1071496772Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiThanks Terry, I =know about the bogus FROM address, and I am using the same FROM address =that works in several other places, but doesn't work here, because it's =too long..
Here is what I'm seeing if I use too many =characters....
What should =be:
[sendmail =to=3Dsteve@fausttheatre.org&from=3Dsteve@fausttheatre.org&subject=3D1234567&content-type=3Dtext/html] =
Looks like this:
endmail =to=3Dsteve@fausttheatre.org&from=3Dsteve@fausttheatre.org&subject=3D12345678&content-type=3Dtext/html]
The first two characters are being truncated from =my code if I put the 8 in the subject =line.
This has got me stumped.
=
On Jul 14, 2012, at 1:53 PM, Terry Wilson wrote:
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=3Dsbraun1@twcny.rr.com&from=3DWebpage@mydomain.com&am=p;subjec
t=3DTest= Over 40 message (no =reply)&content-type=3Dtext/html]
[message_total_hours]
= &n=bsp;[/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=3D../login/website_users.db&
code..blah..code...]
[writefile =testNumfound][numfound][/writefile]
= [f=ounditems]
= co=de..blah..code...
<=blockquote type=3D"cite"> = [s=howif = code..blah..code...
= &n=bsp; [loop =start=3D[
= &n=bsp; code..blah..code...]
= &n=bsp; &nbs=p; [text] message ==3D
= &n=bsp; &nbs=p; [showi=f
code..blah..code..
= &n=bsp; &nbs=p; . =[/showif]
= &n=bsp; &nbs=p; [/text]
= &n=bsp; [/loop]
= [/=showif]
[writefile
testFounditemStart[index]][message][/writefile]
= [s=endmail
to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&=subject
=3DStaff Over 40 message =(no
reply)&content-type=3Dtext/html]
= &n=bsp; [message]
=blockquote>
= [/=sendmail]
[writefile
testFounditemEnd[index]][message][/writefile]
= co=de..blah..code...
<=blockquote type=3D"cite"> = [/=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
=blockquote>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]
=blockquote>=
=[/text]
=
=[/loop]
=
=[/showif]
=blockquote>=
= [sendmail
to=3Dtimeclock@domain.com&from=3DWebpage@domain.com&=subjec
t=3D =Staff Over 40 message =(no
reply)&content-type=3Dtext/html] =[message]
=[/sendmail]
=
=code..blah..code...
=[/founditems]
=
=[/search]
=blockquote>
But =this does work, but with only the last =item
<=blockquote type=3D"cite">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]
=blockquote>=
=[/text]
=
=[/loop]
=
=[/showif]
=blockquote>=code..blah..code...
=[/founditems]
=
=[/search]
=blockquote>=
= [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
=blockquote>subscribed to the mailing list =<talk@webdna.us>. =To
unsubscribe, E-mail to: <talk-leave@webdna.us>
<=blockquote type=3D"cite">archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug =Reporting: support@webdna.us
=blockquote>
------------------------------------------------------
=blockquote>
--- =This message is sent to you because you =are
subscribed to the mailing list <talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
=blockquote>
-------------------------------------------------------
<=/blockquote>
-- This message is sent to you =because you =are
subscribed to the mailing list =<talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
=blockquote>
---------------------------------------------------------
This =message is sent to you because you are subscribed =to
the =mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: =<talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug =Reporting: support@webdna.us
=blockquote>
---------------------------------------------------------
This message is sent to you because you are subscribed =to
the mailing list <talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
=blockquote>
---------------------------------------------------------
This message is sent to you =because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
Bug =Reporting: support@webdna.us
---------------------------------------------------------
This =message is sent to you because you are subscribed to
the mailing list =<talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archi=ves: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
=--Apple-Mail-1-1071496772--
Stephen Braun
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:
How to include weather (2000)
Welcome Back (was) Newbie Question (1999)
RE: Webcatalog and CyberSTUD (1998)
Special delete ... (1997)
WebMerchant and AVS (1998)
Removing [showif] makes a big difference in speed (1997)
Searching multiple Databases (1997)
Re2: frames & carts (1997)
PIXO support (1997)
where's Formulas.db? (2001)
Spiders (1998)
Grep question [parsing variables] problem (2003)
Email Line Breaks [OT] (2003)
Separate SSL Server (1997)
[WebDNA] FindString fails ... but why? (2014)
Help getting [shownext] to increment (2003)
did I miss anything (1997)
Wanted: Broader string manipulation functions (1997)
Updating a database once per day - An example (1998)
2.1 Stuff (1998)