S
surf_doggie
I found that a number of my sites that send email using CDO failed
withing the past 30 days. Consider the following. I know its not the
best coding practice to open and close the connection so many times but
Im curious why this would all of a sudden become an issue.
1. Have a few large sites essentially all variables such as SMTP server
are set using cookies so I can deploy multiple sites quickly.
2. Within the site email appears to work correctly across all pages
with 1 exception.
3. The exception is below, Im wondering if it has to do with cookies
having to be retrieved multiple times from the client machine
--Call db run search loop data build array
--Based on data in array call another search alter and finalize array
--Do while <= uBound(myArray)
--Call Email sub (from,to,sub,body) ' Sub contains a request
cookies for SMTP server.
--Loop
Doesnt matter if its 2 or 50 emails always fails when using
request.cookies to set the SMTP in the sub. Works fine if I hard code
the IP. This same sub is used multiple times throughout the website and
works fine with cookies.
Just curious why it needs might need to be hard coded in the loop. Has
been running for about 6 months fine and have recently started noticing
failures.
Thanks,
Earl
withing the past 30 days. Consider the following. I know its not the
best coding practice to open and close the connection so many times but
Im curious why this would all of a sudden become an issue.
1. Have a few large sites essentially all variables such as SMTP server
are set using cookies so I can deploy multiple sites quickly.
2. Within the site email appears to work correctly across all pages
with 1 exception.
3. The exception is below, Im wondering if it has to do with cookies
having to be retrieved multiple times from the client machine
--Call db run search loop data build array
--Based on data in array call another search alter and finalize array
--Do while <= uBound(myArray)
--Call Email sub (from,to,sub,body) ' Sub contains a request
cookies for SMTP server.
--Loop
Doesnt matter if its 2 or 50 emails always fails when using
request.cookies to set the SMTP in the sub. Works fine if I hard code
the IP. This same sub is used multiple times throughout the website and
works fine with cookies.
Just curious why it needs might need to be hard coded in the loop. Has
been running for about 6 months fine and have recently started noticing
failures.
Thanks,
Earl