• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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 ...
}


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.