Monday, May 08, 2006

PB's contrib - Phplist auto date subject and message

Added date placeholder in subject /admin/sendemaillib

$cached[$messageid]["subject"] = $message["subject"];
if($cached[$messageid]["subject"]== "(no subject)")
$system_date_now = date("dS F Y");
$cached[$messageid]["subject"] = "Sai Inspires - " .
$system_date_now ." from Prashanti Nilayam";

Now, though the mail is created and sent as "no subject", the users get the mail with subject Sai Inspires - 04th May 2006 from Prashanti Nilayam and so on.

Update on Date: 21/05/2006 8:38 am:
Changed the date placeholder in subject and message ( in file

Replaced the function date("dS F Y") with date("jS F Y")

d Day of the month, 2 digits with leading zeros01 to 31
jDay of the month without leading zeros1 to 31
Replaced the format output from
Sai Inspires - 07th May 2006 from Prashanti Nilayam
Sai Inspires - 7th May 2006 from Prashanti Nilayam

No comments:

Post a Comment