Connecting Tech Pros Worldwide Forums | Help | Site Map

sending emails with coldfusion

Newbie
 
Join Date: Nov 2008
Posts: 11
#1: Jan 12 '09
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.co.uk
password:
after verification iit gave a message: Connection Verification Successful
but my mails dont leave my system

the follow code sends the mail
Expand|Select|Wrap|Line Numbers
  1. <cfif #Trim(Form.month)# EQ 0 AND #Trim(Form.day)# EQ 0>
  2.  <cflocation url="index.cfm?er=#URLEncodedFormat('1')#">
  3. <cfelse>
  4. <cfquery name="check" datasource="fproject">
  5.  select validate, userid
  6.     from login
  7.     where userid = (select userid
  8.         from details_stud
  9.                     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)#')
  10. </cfquery>
  11. <cfif #check.RecordCount# GT 0>
  12.  <cfmail to="#Trim(Form.email)#"
  13.       from="support@buconnect.com"
  14.             subject="Your password"
  15.             query="check"
  16.             type="html">
  17.             <p>your validation code</p>
  18.             <p>&nbsp;</p>
  19.             <p>#validate#</p>
  20.             <p>&nbsp;</p>
  21.             <p>Enter this code into the validation page</p>
  22.             <p>The BUConnect Support Team</p>
  23.      </cfmail>
  24.  
  25.      <!--- SMS goes here --->
  26.      <cfscript>
  27.    EID = encrypt('#check.userid#', 'thekey', 'CFMX_COMPAT', 'UU');
  28.      </cfscript>
  29.  
  30.      <cflocation url="confirm.cfm?ID=#URLEncodedFormat('#EID#')#">
  31. <cfelse>
  32.  <cflocation url="index.cfm?er=#URLEncodedFormat('2')#">
  33. </cfif>
  34. </cfif>
thanks

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Jan 12 '09

re: sending emails with coldfusion


Try setting it to your local smtp server.

Also see
Mail page
Sending e-mail messages
Newbie
 
Join Date: Oct 2009
Posts: 2
#3: 1 Week Ago

re: sending emails with coldfusion


Try a free smtp server. Yahoo might require you to pay before you can use their POP facility
Reply