I am trying to set up a template for an email program below you will
see the test program the $mail_template is pulled from a database
that is pre saved when it is saved the Placeholders are filled in
using str_replace. that is what I want it to do. But it does not work. What am
I
AM
Subject: [PHP] email templates and str_replace
I am trying to set up a template for an email program below you will
see the test program the $mail_template is pulled from a database
that is pre saved when it is saved the Placeholders are filled in
using str_replace. that is what I
I might just include
the source some time.
Hope this helps,
Chris "TunkeyMicket" Watford
TunkeyMicket Productions
www.tunkeymicket.com
- Original Message -
From: "Richard Kurth" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Se
##',$domainname,$mail_content);
?
Something like the above would have the effect you're looking for.
--
Rich Cavanaugh
CTO, EnSpot.com
-Original Message-
From: Richard Kurth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 4:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] email templates
Richard,
The problem is with the str_replace()s. Consider the following:
?php
$myvar = 'this is a var.';
$mytext = str_replace('is', 'is not', $myvar);
?
At this point $myvar still equals 'this is a var.' but $mytext is 'this is
not a var.' $myvar hasn't been modfified by the
5 matches
Mail list logo