4 Replies Latest reply on May 11, 2009 8:22 AM by ilssac

    problem sending email

    newchickinCF Level 1

      i have google code which fetch contacts from the gmail.

       

      i have following code but when i trigger email, i encounter error:

       

      <cfset contacts = application.gContacts.getContacts()>
      <cfform name="sendinvites" id="sendinvites">
      <cfoutput>
      <cfloop array="#contacts.contacts#" index="contact" >
        <cfif contact.title EQ "" >
          <cfset contact.title = contact.email[1].address >
        </cfif>
        <input type="checkbox" name="contact_id#contact.id#" id="contact_id#contact.id#" value="#contact.email[1].address#">
        #contact.title#<br />
      </cfloop>
      </cfoutput>

       

      my email consider as:

       

      <cfmail to="#form.emailaddresses#" bcc="#form.contact.email[1].address#" from="me@me.com" username="#MailUser#" password="#Mailpass#" port="#MPort#" type="html" subject="#form.subject#" server="#MServer#" failto="#Mfailto#">

       

      but it is not triggering email, i am doing something wrong. i think the BCC address is wrong.