Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
php mail function - need help!?
Hello Folks,
I'm new at PHP.
I enjoyed using the mail function of PHP.
I can email text and even html contents, I tried putting
php script in my html message but it didn't show up in my email.
$to = "myemail@yahoo.com";
$from = "otheremail@yahoo.com";
$subject = "PHP script";
$message = <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...
<html xmlns="http://www.w3.org/1999/xhtml%22%3E
<head><title>Test</Title>
<body>
<?php
$var1 = "PHP ";
$var2 = "is fun!";
echo $var1.$var2;
?>
</body>
</html>
--------------
help is appreciated.
Thanks!
Be the first to answer this question.