A form on my Web site sends its submitted values to a php page on my server (Apache), which then emails them to me.
The form values are also sent to a payment gateway, which creates some new values (Authorization Code, Transaction ID, etc.). I have the gateway configured to send its new values to another page on my server, which then sends them to me in a 2nd email.
I would like to send myself all values in a single email instead of 2 separate ones. But how would I go about doing this? I guess my question is: Can php code be written that would save values from 2 different sources, at 2 different times (a delay of probably 1 or 2 seconds), and then send a single email?