sending emails with coldfusion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kayox007
    New Member
    • Nov 2008
    • 14

    sending emails with coldfusion

    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
    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>&nbsp;</p>
                <p>#validate#</p>
                <p>&nbsp;</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>
    thanks
    Last edited by acoder; Jan 12 '09, 10:05 PM. Reason: Correct formatting and [code] tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Try setting it to your local smtp server.

    Also see
    Mail page
    Sending e-mail messages

    Comment

    • adexfe
      New Member
      • Oct 2009
      • 2

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

      Comment

      Working...