PHP file() and email?

  • Thread starter Thread starter winkelthorp
  • Start date Start date
W

winkelthorp

Guest
I want to send an HTML email with PHP and basically I want to just send an html file I have on the website. However, the file I want to send has PHP in it to personalize the email with the name and stuff: Hi <? echo $name;?>, like that. So can I read it into an array like: $file = file('email.html'), and will the php part still work when I send it, meaining will it look like: Hi John?

Also, is there any good site to test PHP where I can just type in my code and run it, kind of like the Try It Editor for HTML.

Any help is appreciated and 10 points goes to somebody who can competently answer both questions (or if no one does the one who has...the best answer!). Thanks so much!
 
Back
Top