Hi, I don't know what to Id call this, but I will explain what I need to do.
On my signup I want to send out an email to the newly signed up user. Thats no problem. I also have that email in a text file which I get the contents of using the fopen and fread functions. No problem there and no problem actually sending the emails.
How could I turn $username and other variables(which do exist) I have in the email text file? I actually have the variables looking like this inside of the text file, {$username}.
and I tried doing something like this, hoping variables would automatically turn into the variables value. $contents contains whatever fread spits out.
$message = "$contents"
Any help would be appreciated. Thanks.