I have an html page uploaded on my server as payment_receipt.html;
I am using phpmailer to send an emai. This receipt i have to send as body of the Email.
Simply
$Content = file_get_contents("somefile.html"))
can do the trick. However i need to set values like Amount, Client name etc. They are placed inside html as
<div class="customerName">Dear{Customer Name}</div>
<div class="confirmation">This email confirms your purchase of following services:</div>
Etc.
How can i set these values in my html before sending it as a body of mail.?
str_replace()php.net/str_replacestr_replaceand replace all those data within html which have {such_format} with values