is it possible Email html with embedded php?

Mark

New member
i am trying to seed an e-mail via php with embedded php in the html e-mail being sent.
to send the html i am putting the html code into a variable and then the message in the email being sent is the variable (holding the html code). However i can not find a way to embed php within the html code. this would be php in html in a php variable. anyone know if this is possible?
 
Doubt that would work. Remember PHP-scripts are "run" by the web-*server* (not the browser), and often it's dependent upon a running MySQL-server and it's content too.

I think you'll need to use a script that is run by the browser, like JavaScript.

Alternatively, you could embed a Java-program/applet... or use some other script (Perl, Python, Ruby).
 
Back
Top