emails templates

A place for users and developers of the Xataface to discuss and receive support.

Postby 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,
cbovio
 
Posts: 25
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 25 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved