Page 2 of 2

Re: File Object / PHP

Posted: Wed Feb 21, 2018 8:23 pm
by admin
toms,

OK I get it now.

It sounds like your scenario is more customised than what nuBuilder Forte is made for.

You may have to create your own functions to manage it.

Sorry, that's probably not what you wanted to hear.

Steven

Re: File Object / PHP

Posted: Wed Feb 21, 2018 9:11 pm
by toms
Steven,

The solution is very simple: Before calling nuSendEmail(), I will create a copy of the file. In this way, even if the file is then deleted by nuSendEmail(), I still have a copy of it.

Re: File Object / PHP

Posted: Thu Feb 22, 2018 3:09 am
by admin
OK

Re: File Object / PHP

Posted: Thu Feb 22, 2018 10:05 am
by toms
admin wrote:OK
Well... even though I have a solution, maybe you can consider my suggestion to change the behaviour of nuSendEmail()-
(Or to add a parameter like "delete_source_files_after_sending" with true --> unlink() and false --> don't delete the source files )

Re: File Object / PHP

Posted: Thu Feb 22, 2018 6:13 pm
by admin
.