|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jasonfb Smarty n00b
Joined: 28 Dec 2004 Posts: 1
|
Posted: Tue Dec 28, 2004 6:15 am Post subject: can SMARTY help me send email with PHP mail() function? |
|
|
I know that I can call
$smarty->display('template.tpl');
to make SMARTY pipe the contents to result of the currently running PHP script. Is there a way that instead of piping the contents to the currently running page, I could capture that output in a variable in my script?
What I will then do it call the mail() function, and pass the mail() function this variable to use as the body of the email message.
SMARTY is so elegant I want to be able to extent it to email sending scripts too! |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|