Menu
Shouldn’t it be as simple as this to display the date in my email subject? When I run this it just display exactly what’s written, ignores the code…
[code=php]
$message = <<<HERE
The following people are members as of echo date(‘d-m-Y’);.
The login information is as follows:
—————————————–
$login
HERE;
$from = “Email <[email protected]>”;
mail($to, $subject, $message, ‘From: ‘.$from);
}
?>