Welcome Guest, Not a member yet? Register   Sign In
embedding variable in HTML mail()?
#1

[eluser]solid9[/eluser]
I'm trying to incorporate a variable $code,

below is the codes,

Code:
$subject = 'reset password account';
$message = '
<html>
<head>
  <title>Reset password account</title>
</head>
<body>
<b>Copy and paste the code below </b>
<br><b>Code: </b>&lt;?php $code ?&gt;
<br><br>
<b>Please click the link below to reset your password </b>
<br>
<a href="http://www.sample.com/main/reset_password_final/">Reset your password here.</a>


But unfortunately it's not showing up in the email?

What is the right way to incorporate a variable into email?

Thanks in advanced.


Messages In This Thread
embedding variable in HTML mail()? - by El Forum - 02-26-2012, 12:07 AM
embedding variable in HTML mail()? - by El Forum - 02-26-2012, 12:20 AM
embedding variable in HTML mail()? - by El Forum - 02-26-2012, 01:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB