Skip to main content
Inspiring
May 11, 2009
Question

problem sending email

  • May 11, 2009
  • 1 reply
  • 1141 views

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.

This topic has been closed for replies.

1 reply

Inspiring
May 11, 2009

debugging step 1 - cfdump your form.

Inspiring
May 11, 2009

i did every thing, cfdumped the form values.

but i get this going on.

Dude, i am not getting any error. only happening is:

i have a statement like

<cfif len(form.subject) is 0>
please post an subject.
<cfelse>
<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#">
</cfif>

so what it does, it just stuck at form.subject, if i enter any value, it keep saying enter subject. really lost what the issue is.

if i have had an error, i must have posted it.

if i use with bcc, it works, really donno what is going on

i checked the dom source of generated content, i get thfollowing:

<input name="contact_id1" id="contact_id1" value="simthain@abx.com" type="checkbox">
  simthain@abx.com<br>

 
   
 
  <input name="contact_id2" id="contact_id2" value="gavy81@abx.com" type="checkbox">

  gavy81@abx.com<br>

 
   
 
  <input name="contact_id3" id="contact_id3" value="rampal_82@yahoo.com" type="checkbox">
  rampal_82@yahoo.com<br>

 
   
 
  <input name="contact_id4" id="contact_id4" value="seminar@e3careers.com" type="checkbox">
  seminar@e3careers.com<br>

 
   
 
  <input name="contact_id5" id="contact_id5" value="careers@e3careers.com" type="checkbox">

  careers@e3careers.com<br>

Inspiring
May 11, 2009

this line if i use with bcc, it works, really donno what is going on

i mean

if ido not  use with bcc, it works, really donno what is going on