Geronantimo
Technical User
I am trying to write a very simple php script that can send an e-mail with the date and time in the subject line.
I have tried this:
and this works fine - "hello" is in the subject line and "x" in the body of the e-mail.
When I try to echo the date into the subject line, I cannot get it to work.
Is it possible to achieve what I am trying to achieve?
I have tried this:
Code:
<?php
mail("cron@domain.net","hello",x);
?>
and this works fine - "hello" is in the subject line and "x" in the body of the e-mail.
When I try to echo the date into the subject line, I cannot get it to work.
Is it possible to achieve what I am trying to achieve?