Method to load email from template function Load()

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sticcino
User
Posts: 1043

Method to load email from template function Load()

Post by sticcino »

Hi,

It seems the phpmaker function:

// Method to load email from template function Load($fn, $langid = "")
$wrkpath = ew_IncludeTrailingDelimiter(ew_IncludeTrailingDelimiter(ew_ScriptFolder(), TRUE) . EW_EMAIL_TEMPLATE_PATH, TRUE); // Get file path

assumes you will only be sending messages from the root folder scripts. I have a script that is in a sub-folder that I was send a message from, but the load function fails to load the email script template due to the fact that it can't traverse back up from the sub-folder.


mobhar
User
Posts: 11660

Post by mobhar »

sticcino wrote:
it can't traverse back up from the sub-folder.

Then make sure you have already adjusted to the actual of your sub-folder in your own script.


sticcino
User
Posts: 1043

Post by sticcino »

that's the problem, the function doesn't allow for it.. take a look at the code


arbei
User
Posts: 9284

Post by arbei »

Update the value of "EW_EMAIL_TEMPLATE_PATH" in the generated file ewcfg14.php to your folder and try again.


Post Reply