Page 1 of 1

Method to load email from template function Load()

Posted: Thu Jan 04, 2018 12:35 am
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.


Re: Method to load email from template function Load()

Posted: Fri Jan 05, 2018 1:00 pm
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.


Re: Method to load email from template function Load()

Posted: Tue Jan 09, 2018 2:02 am
by sticcino

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


Re: Method to load email from template function Load()

Posted: Tue Jan 09, 2018 1:03 pm
by arbei

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