emails templates

Archived from the Xataface Users forum.

cbovio — Mon Apr 23, 2007 6:10 am

hello,

i would like to use templates to send emails from delegates class.

is here any function like df_display but without stdout ?

thanks,


shannah — Mon Apr 23, 2007 8:43 am

Use output buffering:

ob_start();
df_display(…);
$email_contents = ob_get_contents();
ob_end_clean();

Check out http://php.net/ob_start for more info about output buffering.

Best regards

Steve