ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old November 14th, 2003, 11:56 AM
eanicklaus eanicklaus is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Florida
Posts: 21 eanicklaus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
problem linking to .cfm file that contains mail script

I do not know cold fusion at all. And I have
struggled and have come up with nothing. All
I needed to do was edit the form on the page
and of course the mail script.

I saved it and uploaded. When I click on the
link to go to the email page. My browser wants
to download the file!(Unless I completely remove
the mail script at the top, which defeats the purpose).

You can see what I mean by going to

http://www.minid.com/cfopreview/default.cfm

Click on "sign up for newsletter".

I tried opening it in a blank window and quickly
stopping the page load. When I hard refresh..I get
the page's script..inlcuding the Cold Fusion script
not just the HTML ??!!!



Below is what was originally provided to me.
I did move the include file "header.cfm" into the
<body> because it is a image banner and put the
style.cfm ( a css style) include to the <head> tag.

Can somebody tell me what I might be doing wrong??
I hope I provided enough info, let me know if not.
Thanks so much in advance.


Code:
<cfif ParameterExists(dosignup)>
<cfif #rdoSubscribe# is "subscribe">
<cfmail to="eanicklaus@website.com" from="#emailaddress#" subject="subscribe newsletter
 #emailaddress#">
subscribe newsletter #emailaddress#
</cfmail>
<cfset tMSG = "#emailaddress# has been added to the Newsletter Mailing List">
<cfelse>
<cfmail to="eanicklaus@website.com" from="#emailaddress#" subject="unsubscribe newsletter #emailaddress#">
unsubscribe newsletter #emailaddress#
</cfmail>
<cfset tMSG = "#emailaddress# has been removed from the Newsletter Mailing List">
</cfif>


</cfif>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>


<cfinclude template="style.cfm">

<cfinclude template="header.cfm">
<head>
	<title>Input your Email for timely updates of Networking Events</title>
</head>
<body>

and so on and so forth.....

Reply With Quote
  #2  
Old November 14th, 2003, 12:31 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,618 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 44 m 33 sec
Reputation Power: 53
What version of CF are you using?

If you remove the mail tags from the code does it still fail?

Reply With Quote
  #3  
Old November 14th, 2003, 12:36 PM
eanicklaus eanicklaus is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Florida
Posts: 21 eanicklaus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your reply kiteless,

I have no idea what version. How to you test that?
If I completely remove the Mail script from the top and start the page with the Doctype line. It will display.

Reply With Quote
  #4  
Old November 14th, 2003, 12:40 PM
eanicklaus eanicklaus is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Florida
Posts: 21 eanicklaus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Do you think it may be the server I am temporarily testing the page on???

Reply With Quote
  #5  
Old November 17th, 2003, 09:18 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,618 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 44 m 33 sec
Reputation Power: 53
Quote:
Originally posted by eanicklaus
Thanks for your reply kiteless,

I have no idea what version. How to you test that?
If I completely remove the Mail script from the top and start the page with the Doctype line. It will display.
You can look in the ColdFusion Administrator. Or you can output the variables:

Server.ColdFusion.ProductVersion
Server.ColdFusion.ProductLevel
Server.ColdFusion.ProductName

Reply With Quote
  #6  
Old November 17th, 2003, 09:20 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,618 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 44 m 33 sec
Reputation Power: 53
Quote:
Originally posted by eanicklaus
Do you think it may be the server I am temporarily testing the page on???
Honestly I'm not sure. The only time I've seen this happen is if the ColdFusion Server is not properly configured to serve up .cfm pages. But as far as I can tell, other CF pages work on the server. Is more than one server being used?

Reply With Quote
  #7  
Old November 19th, 2003, 07:17 PM
cliffyman cliffyman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Washington DC, USA
Posts: 156 cliffyman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 7 sec
Reputation Power: 8
Send a message via AIM to cliffyman
That's likely definitely the problem, either that the server doesn't support ColdFusion at all or it's improperly configured. CF support is rare on most web hosts so it's doubtful it'll work on just "any old server"


-Cliff

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > problem linking to .cfm file that contains mail script


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 | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway