Jump to content

[SOLVED] Date/Time... Mail $Subject?


TRemmie

Recommended Posts

Is it possible to use the simple PHP Mail:

 

<?php

$to = "[email protected]";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "[email protected]";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";

?>

 

But in the subject line, have it display the Time and Date at the time the PHP script was played? I am using a simple flash email form and I will have all the emails to me, and I want the subject to be the time and date the person filled out the form and submitted.

Link to comment
https://forums.phpfreaks.com/topic/100738-solved-datetime-mail-subject/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.