I have a very simple template:
<html>
<head>
<title>XXXTITLEXXX</title>
</head>
<body><p>
XXXCONTENTXXX</p>
<p>
<a href="XXXLINK01XXX">Click this link to approve</a>
<br>
<br>
<a href="XXXLINK02XXX">Click this link to decline</a>
</p>
</body>
</html>
This is stored in a file called template.html
I pull it into a variable like so:
$html = implode('', file('http://www.discostudio.co.uk/emails/mailer.php'));
So I now have all that info in a variable called $html.
I need to replace the XXXTITLEXXX With today's title.
I need to replace the XXXLINK01XXX with a link, XXXCONTENTXXX with some content, and so on..
Can anyone tell me the quickest way to do this?