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.

Method to load email from template function Load()

Postby sticcino » Thu Jan 04, 2018 12:35 am

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.
sticcino
 
Posts: 201
Joined: Sun Dec 30, 2012 11:55 pm

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

Postby mobhar » Fri Jan 05, 2018 1:00 pm

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.
mobhar
 
Posts: 4672
Joined: Wed Jun 05, 2013 2:11 pm

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

Postby sticcino » Tue Jan 09, 2018 2:02 am

that's the problem, the function doesn't allow for it.. take a look at the code
sticcino
 
Posts: 201
Joined: Sun Dec 30, 2012 11:55 pm

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

Postby arbei » Tue Jan 09, 2018 1:03 pm

Update the value of "EW_EMAIL_TEMPLATE_PATH" in the generated file ewcfg14.php to your folder and try again.
arbei
 
Posts: 1499
Joined: Wed Sep 09, 2015 10:13 am


Return to General Discussion (PHPMaker)