If you also know another way to do it I would appreciate.
- Code: Select all
<?php
$mo= file_get_contents('http://www.google.com/');
//change this to your email.
$to = "mail@domain.com";
$from = "mail@domain.com";
$subject = " HTML email";
//begin of HTML message
$message = <<<EOF
$mo
EOF;
//end of message
$headers = "From: $from\r\n";
//$headers .= "Content-type: text/html\r\n";
$headers .= "Content-type: text/css\r\n";
// now lets send the email.
mail($to, $subject, $message, $headers);
echo "sent";
?>

