imanewbe Posted June 22, 2011 Share Posted June 22, 2011 Hi I have a page which has information generated by using a variable in the $_GET array. I need to send the contents of the page to an email. Is there a way to do this? I have tried using file_get_contents but have had trouble. Any help would be much appreciated. Link to comment https://forums.phpfreaks.com/topic/240058-email-contents-of-php-page/ Share on other sites More sharing options...
fugix Posted June 22, 2011 Share Posted June 22, 2011 Can you be a bit more descriptive and post your code. You'll want to use the mail() function to send an email. I'm not sure why file_get_contents is relevant. Link to comment https://forums.phpfreaks.com/topic/240058-email-contents-of-php-page/#findComment-1233149 Share on other sites More sharing options...
imanewbe Posted June 22, 2011 Author Share Posted June 22, 2011 I click on a link which opens a window which then displays a whole lot of order information. I want an easy way to send everything that is displayed to an email address. I am using the mail function. That part works fine. But getting that information from the page is the part I am having trouble with. I was using file_get_contents to try and get the information from the page. Link to comment https://forums.phpfreaks.com/topic/240058-email-contents-of-php-page/#findComment-1233152 Share on other sites More sharing options...
Pikachu2000 Posted June 22, 2011 Share Posted June 22, 2011 Post your code that within . . . tags, and and as much other relevant information as you can think of. Link to comment https://forums.phpfreaks.com/topic/240058-email-contents-of-php-page/#findComment-1233153 Share on other sites More sharing options...
imanewbe Posted June 22, 2011 Author Share Posted June 22, 2011 I have seemed to figure it out. The issue I had was I need to put the whole url not just the local file path. Link to comment https://forums.phpfreaks.com/topic/240058-email-contents-of-php-page/#findComment-1233205 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.