Smart Mailer PHP Support Product Page
Adding a time & Date Stamp
Asked 10 Feb 2013 20:32:23
1
has this question
10 Feb 2013 20:32:23 Keith Mears posted:
Is there a way to add a time and date stamp to the mail sent via a form? Replies
Replied 11 Feb 2013 12:56:48
11 Feb 2013 12:56:48 Vulcho Vulev replied:
Hello Keith.
What do you need exactly to achieve?
To implement date and time stamp to the subject field of the e-mail or to implement date and time stamp to the body of the e-mail?
Regards:Vulcho.
What do you need exactly to achieve?
To implement date and time stamp to the subject field of the e-mail or to implement date and time stamp to the body of the e-mail?
Regards:Vulcho.
Replied 11 Feb 2013 19:33:07
11 Feb 2013 19:33:07 Keith Mears replied:
Hi Vulcho
Thanks for the prompt reply, I am looking to add it to the body of the email.
Regards
Keith
Thanks for the prompt reply, I am looking to add it to the body of the email.
Regards
Keith
Replied 12 Feb 2013 10:31:10
12 Feb 2013 10:31:10 Vulcho Vulev replied:
Hello Keith.
Please send me your page at my e-mail:
Regards:Vulcho.
Please send me your page at my e-mail:
Regards:Vulcho.
Replied 13 Feb 2013 20:14:52
13 Feb 2013 20:14:52 Keith Mears replied:
Hi Vulcho - I have sent the page.
Many thanks.
Keith
Many thanks.
Keith
Replied 14 Feb 2013 15:49:19
14 Feb 2013 15:49:19 Vulcho Vulev replied:
Hello Keith.
The additional code that you need to edit in order for the stamp to be shown is :
Regards:Vulcho.
The additional code that you need to edit in order for the stamp to be shown is :
// using static for body $sm1->setBody_Static_html("Name: ".((isset($_POST["Name"]))?$_POST["Name"]:"".date('d-m-Y H:m:s')."")."<br />Email: ".((isset($_POST["Email"]))?$_POST["Email"]:"")."<br /> Enquiry Details: <br />".((isset($_POST["Enquiry"]))?$_POST["Enquiry"]:"")."<br />");
Regards:Vulcho.