[FX.php List] Creating HTML Mail with PHPMailer
Jonathan Schwartz
jschwartz at exit445.com
Sat Aug 18 17:06:11 MDT 2007
Hi Folks,
I'm a little stumped on what should be an easy issue.
I am implementing the project mentioned in an earlier email...allow
my users to compose their own email on a php page and then send.
I'd like to set up a pre-determined header and footer section,and
then insert the user compose content in the middle. I just can't
figure out how to successfully put the three together for phpmailer
to send. While I can do it easily by specifying the header and
footer in the same script, I am having trouble "including" the HTML
code from an external file. When I try and do so, I get
"1UserContent1", where php is placing a "1" before and after the
UserContent instead of the intended HTML code from the external files.
It looks like a boolean response, but I'n not sure to what.
I *could* just store the header and footer in the phpmail script and
avoid the issue, but I really wanted the flexibility to mix and match
headers and footers.
What am I doing wrong?
Jonathan
--
Jonathan Schwartz
Exit 445 Group
jonathan at exit445.com
http://www.exit445.com
415-381-1852
More information about the FX.php_List
mailing list