spillage Posted April 18, 2008 Share Posted April 18, 2008 Ok real new to all this and have tried to ask this before. am I able to to extract the To: email and Subject: line from a email and post into a php form. want to pull this info over to a form and help user by pre filling this info. have spent all day looking but cannot find any examples. any input would be a help but please note my first line Thanks spill Link to comment https://forums.phpfreaks.com/topic/101769-using-email/ Share on other sites More sharing options...
Caesar Posted April 18, 2008 Share Posted April 18, 2008 Where would you be "extracting" from? I think the confusion is in how you are asking your question. Please try to be specific. Link to comment https://forums.phpfreaks.com/topic/101769-using-email/#findComment-520699 Share on other sites More sharing options...
spillage Posted April 18, 2008 Author Share Posted April 18, 2008 Thanks for the reply. I would need to extract the email and subject from the email. Use a link to a php form within the email as it would be a recommend a friend. The email and subject would be used to pre fill the form to reduce user input mistakes. This would then be put into a database. Its the extraction from the email thats giving me the headache. Thanks Link to comment https://forums.phpfreaks.com/topic/101769-using-email/#findComment-520713 Share on other sites More sharing options...
Caesar Posted April 18, 2008 Share Posted April 18, 2008 So initially...your site/server send an email to someone. You want that email to contain a link that goes back to a script on your site where they see a form that has been filled with the appropriate values? Link to comment https://forums.phpfreaks.com/topic/101769-using-email/#findComment-520718 Share on other sites More sharing options...
spillage Posted April 18, 2008 Author Share Posted April 18, 2008 we use a company for sending emails. so i would need to like to extract the customers email from the email and $_post it to a form if they click the link along possibly with the subject matter to track the outcome of the diffrent emails sent. sorry this is kinda confusing but i am really new to this finding it hard to see it clearly myself. only reason i would like to post the original email is to reduce user input in the forms and make the process more easy by only having to fill out one form. thanks spill Link to comment https://forums.phpfreaks.com/topic/101769-using-email/#findComment-520724 Share on other sites More sharing options...
Caesar Posted April 18, 2008 Share Posted April 18, 2008 You would need to simply format the link or form in their email so that it posts/sends them to the right page and the values are passed. Maybe even do it so that it's encrypted. http://somesite.com/form.php?id=bq5t53tmsnq35qbubhq3t4babrugy98yhuij4ht8g4 You then decrypt the id's value (Or whatever get variable you use) in your form script/file and auto-fill your form accordingly. Link to comment https://forums.phpfreaks.com/topic/101769-using-email/#findComment-520732 Share on other sites More sharing options...
mofm Posted April 18, 2008 Share Posted April 18, 2008 ok if your trying to get the email address and subject of an email in someones email inbox when they view the email, this cannot be done unless you have access to the server. if you want to make like a confirmation link similar to what is used on forums thne this can be done easly .... mofm Link to comment https://forums.phpfreaks.com/topic/101769-using-email/#findComment-520734 Share on other sites More sharing options...
spillage Posted April 18, 2008 Author Share Posted April 18, 2008 thanks ceasar for your help. this is what im looking to do but need some help in getting their email to post. how can i retreive the email from within the email. if this cannot be done then i will have to rely more on user input. im just trying to narrow down any possible chance of the user inputing wrong data. thanks mofm. think i know what u mean. looks like maybe ill need to create a link to a html page and just have the 2 forms. one for the users email and one for the friends email. this would be easier but knowing our customers prone to errors. we would probally offer some form of money off after friends first order and if the users email is wrong this could lead to problems tracing their account back. Thanks for the input spill Link to comment https://forums.phpfreaks.com/topic/101769-using-email/#findComment-520744 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.