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.
#2

[eluser]solid9[/eluser]
Problem solved.

Code:
from this,
$message = '';

to this,
$message = "";

#3

[eluser]Unknown[/eluser]
send sms computer to telephone
help me code codeigniter




Theme © iAndrew 2016 - Forum software by © MyBB