ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 30th, 2012, 09:16 AM
davethomas1972 davethomas1972 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 7 davethomas1972 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 53 sec
Reputation Power: 0
ColdFusion Send Email Simple problem

Hi All

I am having problems sending an email via coldFusion. Does anyone know how to send an email so that it actually arrives at the destination? What settings are required.

Many thanks

Dave

Reply With Quote
  #2  
Old April 30th, 2012, 09:44 AM
brianpphilips brianpphilips is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 4 brianpphilips User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 18 sec
Reputation Power: 0
You use the cfmail tag dude.

Reply With Quote
  #3  
Old May 1st, 2012, 09:40 AM
davethomas1972 davethomas1972 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 7 davethomas1972 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 53 sec
Reputation Power: 0
Hi

Thanks for that, do you have any example code for me to look at?

Thanks

D

Reply With Quote
  #4  
Old May 1st, 2012, 09:44 AM
stevejordan stevejordan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: London
Posts: 16 stevejordan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 55 m 19 sec
Reputation Power: 0
Facebook
Quote:
Originally Posted by davethomas1972
Hi

Thanks for that, do you have any example code for me to look at?

Thanks

D


Create a page called email.cfm
Code:
<cfmail to="email@domain.com"
	from="email@domain.com"
	subject="This is a test subject"
	type="text">
	Hello Test

	This is the body Text

	Best wishes
              xx
</cfmail>
<cfoutput>
	<p>Mail sent</p>
</cfoutput>

Reply With Quote
  #5  
Old May 1st, 2012, 09:48 AM
stevejordan stevejordan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: London
Posts: 16 stevejordan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 55 m 19 sec
Reputation Power: 0
Facebook
Sorry forgot to mention: Change the code to match the email addresses you want to use then Hit the email.cfm page you created above in a browser.

Reply With Quote
  #6  
Old May 1st, 2012, 09:51 AM
davethomas1972 davethomas1972 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 7 davethomas1972 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 53 sec
Reputation Power: 0
Hi

I have done this but am not receiving the emails, any ideas?

Thanks

Reply With Quote
  #7  
Old May 1st, 2012, 09:52 AM
stevejordan stevejordan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: London
Posts: 16 stevejordan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 55 m 19 sec
Reputation Power: 0
Facebook
Are you using a shared hosting plan or a dedicated server?

Reply With Quote
  #8  
Old May 1st, 2012, 09:52 AM
davethomas1972 davethomas1972 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 7 davethomas1972 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 53 sec
Reputation Power: 0
Dedicated Server.

Reply With Quote
  #9  
Old May 1st, 2012, 09:55 AM
stevejordan stevejordan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: London
Posts: 16 stevejordan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 55 m 19 sec
Reputation Power: 0
Facebook
You need to login to coldFusion administrator and setup your email settings, do as follows:

Goto the administrator and setup as follows:

Mail Server: localhost
Server Port: 25

"Verify Mail Server Connection - when checked, verifies that ColdFusion can connect to the mail server when the "Submit Changes" button is clicked."

Click save and hopefully this will work, let us know if this worked?

Reply With Quote
  #10  
Old May 1st, 2012, 09:56 AM
stevejordan stevejordan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: London
Posts: 16 stevejordan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 55 m 19 sec
Reputation Power: 0
Facebook
Why dont you ask your hosting provider to help you out. I work for a provider called Hyve and we would help you through this.

Reply With Quote
  #11  
Old May 1st, 2012, 10:16 AM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
Setting up the server to interact with a mail server and sending email is pretty thoroughly covered in the documentation. http://tinyurl.com/74tmdwr

Quote:
Originally Posted by davethomas1972
I have done this but am not receiving the emails, any ideas?

Reply With Quote
  #12  
Old May 3rd, 2012, 10:42 AM
davethomas1972 davethomas1972 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 7 davethomas1972 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 53 sec
Reputation Power: 0
Thanks for that, I asked my hosting company to help me out but they said I need a management contract! Very usefull.... not.

Anyway ive now setup the code to send out the email by following the instructions
Code:
<cfmail to="email@domain.com"
	from="email@domain.com"
	subject="This is a test subject"
	type="text">
	Hello Test

	This is the body Text

	Best wishes
              xx
</cfmail>
<cfoutput>
	<p>Mail sent</p>
</cfoutput>


and I am getting the "Mail sent" message however I am not getting the email sent to me into my inbox

Thanks guys for your help. I checked the co0ldFusion docs as recommended and its a bit complex for my skills

Thanks again

Dave

Reply With Quote
  #13  
Old May 3rd, 2012, 11:02 AM
davethomas1972 davethomas1972 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 7 davethomas1972 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 53 sec
Reputation Power: 0
ok

Reply With Quote
  #14  
Old May 3rd, 2012, 11:05 AM
stevejordan stevejordan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: London
Posts: 16 stevejordan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 55 m 19 sec
Reputation Power: 0
Facebook
I will ask around and see what could be the problem here, definitely ask your host about this one.

Reply With Quote
  #15  
Old May 3rd, 2012, 11:26 AM
stevejordan stevejordan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: London
Posts: 16 stevejordan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 55 m 19 sec
Reputation Power: 0
Facebook
Ok i asked around for you, the problem could be you dont have a PTR setup on your servers IP/domain and your email is going to Spam or being blocked.

A PTR allows the mail server receiving the email to check what domain is associated with the IP address that sent the email and thus check that the email is not in fact spam.

Ask your host to setup one for you and hopefully this is the issue

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > ColdFusion Send Email Simple problem

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap