Does anyone know whether I can sent a html email that has php codes in it?
I use the following code where $email_body is a html/php file(just HTML works fine):
mail($recipients, $subject, $email_body, $email_headers);
In the email header I use text/html.
However, the email I got are php codes and partial HTML files.
Any suggestions?