My issue is: It appears not all emails are being sent. Can PHP overlook or skip past "included" code some code if the page loads too quickly??
Sound crazy? Here's why I ask.
I've got a page where I'm processing a form post. Saving the data into a database but also emailing a copy to the person.
I'm using PHPMailer
On my form process page I have my SQL code then have this line to the page where the email is created and sent.
I have the row ID of the data I've saved from my form by using
And on my sendEmail.php page I query this and get the data again. When I call sendEmail.php and pass in a ID the email send's 100% of the time.
Also, even when emails aren't sent. The data is saved in my database.