Okay heres the setup.

I have 'email.php' that sends data via POST to:
PHP Code:
$recipient '[email protected]'
I want to know if it's possible to get "email.php" to send to a certain email, based on customer #, and email - all of which is stored in a mysql database.

I understand how to get the data into the mysql database, but what i do not understand is how to code the PHP, that reads the data from the mysql so it knows where to send the email.

For example I want a user to login and from the login panel, he can change the email address that the php code sends. -- Is this possible?