Well I'm pretty new to PHP and this is my first time ever trying to send emails.
I can send an email just fine but I want it to send when the send button is pressed and I cant figure out how to do that. All the info is also going into a database when the button is pressed. Also I was trying to figure out how to make the recipients address dynamic. I have an ENUM full of addresses in the database and another ENUM with the names that relate to the address, they only select the name of the person on the page and do not see the address.
Thanks for any help!
EDIT: ok i figured out how to send it on a button press... but I can't figure out how to get the correct email address out of the database. It will pull the first record out everytime.