|
-
Jun 18th, 2009, 08:12 AM
#1
Thread Starter
Addicted Member
[RESOLVED] ?outputbuffer? with mail(file_get_contents)!
With the script given to me by SambaNeko I can do this...
PHP Code:
$to = "[email protected]";
$subject = "This awesome website";
$message = file_get_contents('http://www.example.com');
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail($to, $subject, $message, $headers);
...send a php page to an email address!
Unfortunitly If my PHP page has...
PHP Code:
?x=&y= //used to pull selected info from the server
...it doesn't get recorded?! I have been directed to using a outputbuffer to record and send the information but I have been warned that these can have a negative effect on the server if used incorrectly.
I have the URL starting with '?x=' stored in a variable ('$URLstring') how can I edit the code at the top to send the page with the Information stored?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|