Using NetTalk 4.30, I have an issue on my web server where e-mail is not consistently getting sent. The app is a web store, they are all secure pages. In the last step I have a NetWebForm where I have embeds in Generate Form | 1 Start, and Generate Form | 9 After </script>. The first embed has a call to a local routine Do CreateNewOrder, where quite a bit of stuff is going on with writing the order to my files updating daily summaries and so on. The second embed is the call to my e-mail window: OrderConfEMail(loc:emailto, loc:emailtext, loc:emailhtml,0,0). Most of the time this all works fine.
However, there are times where I am not getting the confirmation e-mail, but I do have the order written. The way it is coded is that if there is an order written out, the e-mail code will execute. I should always get an e-mail on an order. I originally had the call to the e-mail in the same embed, the 1 Start, but it worked even less regularly then, so I moved it to the end of the Generate Form embeds and it has worked better. But I need it to work all the time.
First, why does this not always work? What else can I do to ensure the e-mail will always be sent? I am going to add code to the ErrorTrap of the email window and see if there is something getting posted there, but wondered if anyone had anything like this and what you did about it. It seems like there is some sort of timing issue that I can't nail down. Thanks.
Brian Ekeland