Here is my problem. I have a PHP (script.php) and a text file (mail.txt). I need script.php to read the text file and process it (replace $name with the username etc.) then to place the result of it into the script as the variable $result
For example:
Script knows that the username is abc
Text file reads "hello $user"
Script outputs "Hello abc" where $result is
The portion of the script I am working on is below. I am new so be kind 🙂
include("welcome_mail.txt");
@mail($email, "Thanks", $result, "From: Account Manager");
Thanks!