This is probably really obvious, sorry, been a long day...
I'm wanting to create a PHP file which is a template for an email, and
read the file into a string, ready to send out using my email
functions... but I want to be able to get the PHP file to be server
processed so that its content is created on the fly.
Eg in pseudo code, what I want to do is this:
1$email_param1 = "my email param 1";
2$email_param2 = "my email param 2";
3etc
4$email_content = file_get_conten ts("email.php") ;
5mySendMail("To @somewhere.com" ,"From@somewher eelse.com","My Email
Subject", $email_content) ;
Where "email.php" changes depending upon the content of the
email_param variables.
I could change line 4 to something like this:
$email_content = file_get_conten ts("email.php?p aram1=my+email+ param
+1¶m2=my+em ail+param+2");
?
Thanks,
I'm wanting to create a PHP file which is a template for an email, and
read the file into a string, ready to send out using my email
functions... but I want to be able to get the PHP file to be server
processed so that its content is created on the fly.
Eg in pseudo code, what I want to do is this:
1$email_param1 = "my email param 1";
2$email_param2 = "my email param 2";
3etc
4$email_content = file_get_conten ts("email.php") ;
5mySendMail("To @somewhere.com" ,"From@somewher eelse.com","My Email
Subject", $email_content) ;
Where "email.php" changes depending upon the content of the
email_param variables.
I could change line 4 to something like this:
$email_content = file_get_conten ts("email.php?p aram1=my+email+ param
+1¶m2=my+em ail+param+2");
?
Thanks,
Comment