Welcome Guest, Not a member yet? Register   Sign In
general question
#1

[eluser]bennyhill[/eluser]
I have a controller function that creates a pdf and saves it to the server. Then it emails the same pdf as an attachement to a recipient.

I want to ensure that the pdf is fully saved to the server before the email is sent. What is the best way to do this.

Note:
I have the mPDF as a plugin. It works fine but when i try to return a value from the function in the plugin file, nothing is ever returned even when I try to return TRUE.
#2

[eluser]FrancoNoronha[/eluser]
You can try the old fashion
Code:
if(file_exists('path/to/your/file'))
{
... send the email ...
}




Theme © iAndrew 2016 - Forum software by © MyBB