Emailing Forgotten Password
i'm trying create page email forgotten password. have is...
<cfquery datasource="datasource" name="query">
select password
from members
where email = '#form.email#'
</cfquery>
<cfmail to="#form.email#" from="help@website.com" subject="forgotten password" server="localhost" type="html">
your password email address #form.email# #query.password#. print , keep email future reference.
</cfmail>
this emails blank password. if change #query.password# #password# error using complex variables in simple forms not being availble after cf2.
can use <cfset> create simple value <cfmail> or have better idea. i'm using dreamweaver mx6 , web hosting company running cf5 server.
<cfquery datasource="datasource" name="query">
select password
from members
where email = '#form.email#'
</cfquery>
<cfmail to="#form.email#" from="help@website.com" subject="forgotten password" server="localhost" type="html">
your password email address #form.email# #query.password#. print , keep email future reference.
</cfmail>
this emails blank password. if change #query.password# #password# error using complex variables in simple forms not being availble after cf2.
can use <cfset> create simple value <cfmail> or have better idea. i'm using dreamweaver mx6 , web hosting company running cf5 server.
what happens when cfdump query results?
More discussions in Getting Started
adobe
Comments
Post a Comment