jackmn1 Posted August 8, 2010 Share Posted August 8, 2010 Hi, I have setup a standard contact form that sends an email using php "mail" function in my new website. Today, I received an email from a potential client through my website. However, unfortunately, I did not receive the user's email address because (as I discovered after wards), there was a syntax problem in the function, so all I received is their name and message. I am certain that the user has entered their email address because the form has validation, it just didn't send me the address so I have no way to contact that client... Is there a way to retrieve the lost email address from the server somehow? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/210115-retrieve-user-email-after-email-sent/ Share on other sites More sharing options...
phil88 Posted August 8, 2010 Share Posted August 8, 2010 If the form used GET instead of POST to send the form (quite unlikely) you'll probably be able to get the email address from apache's access log (assuming your server is apache) If the script saves the info to a database (quite unlikely) you could get it from there. Link to comment https://forums.phpfreaks.com/topic/210115-retrieve-user-email-after-email-sent/#findComment-1096571 Share on other sites More sharing options...
jackmn1 Posted August 8, 2010 Author Share Posted August 8, 2010 I appreciate your answer Phil. The form is using Post and the server doesn't save the info to db. I can only hope the client will contact again. Thank you. Link to comment https://forums.phpfreaks.com/topic/210115-retrieve-user-email-after-email-sent/#findComment-1096580 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.