CodeIgniter Forums
embedding variable in HTML mail()? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: embedding variable in HTML mail()? (/showthread.php?tid=49583)



embedding variable in HTML mail()? - El Forum - 02-26-2012

[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.



embedding variable in HTML mail()? - El Forum - 02-26-2012

[eluser]solid9[/eluser]
Problem solved.

Code:
from this,
$message = '';

to this,
$message = "";




embedding variable in HTML mail()? - El Forum - 02-26-2012

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