Link to home
Start Free TrialLog in
Avatar of Jonathan Greenberg
Jonathan GreenbergFlag for United States of America

asked on

PHP Mail With Values From 2 Sources

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?
SOLUTION
Avatar of QualitySoftwareDevelopment
QualitySoftwareDevelopment

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jonathan Greenberg

ASKER

Thank you both for your comments.

Chris, one of your options was to "make a script wait for the response." I want to be clearer about what this means. Does this mean my script could receive the values from my Web form, wait until the response comes in from the payment gateway, and then send all values at once? If so, could it do this without using a session and/or a database?
I figured it out.  Thanks again.
Sorry i did not get back to you sooner. Im happy you figured it out :-)

If we can be of more assistance just let us know :-)

rgrds,