HTML email with PHP tags
- From: "UKuser" <spidercc21@xxxxxxxxxxx>
- Date: 24 Oct 2006 08:33:07 -0700
Hi Guys,
Not sure if this is possible.
If I'm sending HTML emails, how can I include PHP tags? I've tried the
standard <?php tags and just inserting them anyway, but neither seem to
work. I really just want to format the text to make it look better
rather than putting images etc.
I.e. using this example from sitepoint.com
<?php
mail('recipient@xxxxxxxx', 'Subject',
'<html><body><p>Your <i>message</i> here.</p></body></html>',
"To: The Receiver <recipient@xxxxxxxx>\n" .
"From: The Sender <sender@xxxxxxxx>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
?>
Within the <html> tags I'd like to include variables like $usernames
etc.
Thanks
A
.
- Follow-Ups:
- Re: HTML email with PHP tags
- From: Breklin
- Re: HTML email with PHP tags
- From: bob.chatman@xxxxxxxxx
- Re: HTML email with PHP tags
- Prev by Date: Re: how do enable php to run "--with-mysql" ro curl on Windows XP?
- Next by Date: Re: HTML email with PHP tags
- Previous by thread: Using mysql_real_escape_string with sprintf
- Next by thread: Re: HTML email with PHP tags
- Index(es):