<cfparam name="url.number" default="">

<cfif url.number gt "">

	<cfset UserContactnumber = #url.number#>

<cfelse>

	<cfset UserContactnumber = #attributes.UserContactnumber#>

</cfif>

<cfset customer_OPT_confirm = round(rand()*89996+10000)>

<CFQUERY name="get_email_to_sms" datasource="#application.datasource#">
	SELECT		*
	FROM		EmailToSMS
</CFQUERY>

<cfoutput query="get_email_to_sms">

	<cfset new_customer_OPT_confirm = customer_OPT_confirm&#get_email_to_sms.EmailToSMSID#>

 	<cfmail to="#UserContactnumber##get_email_to_sms.EmailToSMSSuffix#"
        from="admin@payfrit.com"
        subject="Payfrit account registration">your six-digit code is #new_customer_OPT_confirm#</cfmail>

</cfoutput>

<cfset caller.customer_OPT_confirm = #customer_OPT_confirm#>


