[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.