d3CLT Posted May 11, 2012 Share Posted May 11, 2012 Hello! I hope this should be an easy one. I'm trying to add a simple greeting to my email templates for "Good morning", etc., but no email is sent after adding the PHP code. I wasn't able to locate any errors. My template is as follows: {php} $now = getdate(); $hrs = $now['hours']; $greeting = ""; if ($hrs >= 17) { $greeting = "Good evening"; } else if ($hrs >= 12) { $greeting = "Good afternoon"; } else { $greeting = "Good morning"; } echo $greeting; {/php}, Message here. Thank you, aoeuaoue Also, WHMCS does not appear to be referencing the from "name" I've defined for this email template. That is, the first field after "From:", but before where the email address is specified. Can anyone tell me what might be causing this? 0 Quote Link to comment Share on other sites More sharing options...
d3CLT Posted May 11, 2012 Author Share Posted May 11, 2012 Update: It does appear that this field is being ignored. A change of the department name revealed that the new ticket email template is using the syntax <companyName> <departmentName>. How can I force WHMCS to use the "from" name that I have specified in the email template? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.