hello everyone
am really having problems sending mails with coldfussion
i configured my cf administrator > mail as follows
server: smtp.mail.yahoo .co.uk
username ***.***@yahoo.c o.uk
password:
after verification iit gave a message: Connection Verification Successful
but my mails dont leave my system
the follow code sends the mail
thanks
am really having problems sending mails with coldfussion
i configured my cf administrator > mail as follows
server: smtp.mail.yahoo .co.uk
username ***.***@yahoo.c o.uk
password:
after verification iit gave a message: Connection Verification Successful
but my mails dont leave my system
the follow code sends the mail
Code:
<cfif #Trim(Form.month)# EQ 0 AND #Trim(Form.day)# EQ 0>
<cflocation url="index.cfm?er=#URLEncodedFormat('1')#">
<cfelse>
<cfquery name="check" datasource="fproject">
select validate, userid
from login
where userid = (select userid
from details_stud
where mail = '#Trim(Form.email)#' and sex = '#Trim(Form.sex)#' and month = '#Trim(Form.month)#' and day = '#Trim(Form.day)#' and mobile = '#Trim(Form.mobile)#' and matric = '#Trim(Form.m1)#/#Trim(Form.m2)#')
</cfquery>
<cfif #check.RecordCount# GT 0>
<cfmail to="#Trim(Form.email)#"
from="[EMAIL="support@buconnect.com"]support@buconnect.com[/EMAIL]"
subject="Your password"
query="check"
type="html">
<p>your validation code</p>
<p> </p>
<p>#validate#</p>
<p> </p>
<p>Enter this code into the validation page</p>
<p>The BUConnect Support Team</p>
</cfmail>
<!--- SMS goes here --->
<cfscript>
EID = encrypt('#check.userid#', 'thekey', 'CFMX_COMPAT', 'UU');
</cfscript>
<cflocation url="confirm.cfm?ID=#URLEncodedFormat('#EID#')#">
<cfelse>
<cflocation url="index.cfm?er=#URLEncodedFormat('2')#">
</cfif>
</cfif>
Comment