• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

problem sending email

Explorer ,
May 11, 2009 May 11, 2009

Copy link to clipboard

Copied

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.

TOPICS
Advanced techniques

Views

816

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 11, 2009 May 11, 2009

Copy link to clipboard

Copied

debugging step 1 - cfdump your form.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 11, 2009 May 11, 2009

Copy link to clipboard

Copied

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 11, 2009 May 11, 2009

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
May 11, 2009 May 11, 2009

Copy link to clipboard

Copied

LATEST

Have you followed all the steps on both Google and CF that is required for the two to talk to each other?

This seems to be a pretty good blog to start off with:

http://jamiekrug.com/blog/index.cfm/2009/2/13/cfmail-using-Gmail-SMTP

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation