PHP : sending reset password link in email
<p>i am sending password reset link using html email in php . this is structure of m code . First is html email</p><pre><br /><code><?php $bodymessage= '<table border="0" cellpadding="0" cellspacing="0" width="100%" >;<br /> $bodoymessaage= .='<a href="$link"' .....?><br /></code><br /></pre><p>the i've setup heaeders</p><pre><br /><code> <?php $headers = 'MIME-Version: 1.0' . "\r\n";<br /> $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";<br /> ?><br /></code><br /></pre><p>and after this i recieve form fields and mail function like this</p><pre><br /><code>if($passreset){<br /> mail($to, $subject, $bodymessage, $headers);<br />} <br /></code><br /></pre><p>now problem is that I've to get reset link and place it in html template thats being set in query and that comes after html template and headers , my questions is what should be order of template , headers and form query that i may get reset link in html template here <code>$bodoymessaage= .='<a href="$link"' .....?></code></p><br /><h2>Click here view more answers <a href="%20http://stackoverflow.com/questions/34524828/php-sending-reset-password-link-in-email">http://ift.tt/1Jff7iU</a></h2>
Nhận xét
Đăng nhận xét