473,655 Members | 3,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling an coldfusion template from a ASP script

G'day,

On the server i am using a asp script to loop thru an xml file that contains
a number of email addresses. When i pick up a email address i would like to
call a cfm template that sends the email. I have tried the below:

Server.Execute( "sendemail.cfm? Email=john");

but it gives me a ASP 0231 error. i suspect that i can only call another asp
script. Interestingly i only get an error when i use the string parameter

any thoughts? i would like to use CF as the mail delivery vehicle

salud

John
Jul 19 '05 #1
4 2511
Not if he's trying to use the CF mail server it's not.

When we need to use CFmail, we use
response.redire ct("whatever.cf m?var=blah"), with no problems. If
redirect works for you, could you rewrite that page so you can use it?

"mark | r" <ma**@nmd.freeu k.com> wrote in message
news:3f******** *************@n ews.dial.pipex. com...
theres a cfm to asp conversion tool on hotscripts.com, dont know if its of any use
mark

"John Reid" <Jo*******@optu snet.com.au> wrote in message
news:3f******** *************** @news.optusnet. com.au...
G'day,
On the server i am using a asp script to loop thru an xml file that contains a number of email addresses. When i pick up a email address i would like to call a cfm template that sends the email. I have tried the below:
Server.Execute( "sendemail.cfm? Email=john");
but it gives me a ASP 0231 error. i suspect that i can only call another asp script. Interestingly i only get an error when i use the string parameter any thoughts? i would like to use CF as the mail delivery vehicle

Jul 19 '05 #2
thanx Kris and Mark,

yes,but i do not know how to get it to loopthru the xml file, spitting out a
email each time. And i am using CFMAIL ie

salud

John
eg
for (var i = players.nextNod e(); i; i = players.nextNod e())
{
Server.Execute( "sendemail.cfm? john=helen")
}
"Kris Eiben" <ei************ *********@yahoo .com> wrote in message
news:O5******** ******@tk2msftn gp13.phx.gbl...
Not if he's trying to use the CF mail server it's not.

When we need to use CFmail, we use
response.redire ct("whatever.cf m?var=blah"), with no problems. If
redirect works for you, could you rewrite that page so you can use it?

"mark | r" <ma**@nmd.freeu k.com> wrote in message
news:3f******** *************@n ews.dial.pipex. com...
theres a cfm to asp conversion tool on hotscripts.com, dont know if

its of
any use
mark

"John Reid" <Jo*******@optu snet.com.au> wrote in message
news:3f******** *************** @news.optusnet. com.au...
G'day,
On the server i am using a asp script to loop thru an xml file that contains a number of email addresses. When i pick up a email address i would like to call a cfm template that sends the email. I have tried the below:
Server.Execute( "sendemail.cfm? Email=john");
but it gives me a ASP 0231 error. i suspect that i can only call another asp script. Interestingly i only get an error when i use the string parameter any thoughts? i would like to use CF as the mail delivery vehicle


Jul 19 '05 #3
Could you store up all the emails in a variable as you loop through, and
send that concatenated variable to the CF page through a redirect?

"John Reid" <Jo*******@optu snet.com.au> wrote in message
news:3f******** *************** @news.optusnet. com.au...
thanx Kris and Mark,

yes,but i do not know how to get it to loopthru the xml file, spitting out a email each time. And i am using CFMAIL ie

salud

John
eg
for (var i = players.nextNod e(); i; i = players.nextNod e())
{
Server.Execute( "sendemail.cfm? john=helen")
}
"Kris Eiben" <ei************ *********@yahoo .com> wrote in message
news:O5******** ******@tk2msftn gp13.phx.gbl...
Not if he's trying to use the CF mail server it's not.

When we need to use CFmail, we use
response.redire ct("whatever.cf m?var=blah"), with no problems. If
redirect works for you, could you rewrite that page so you can use it?
"mark | r" <ma**@nmd.freeu k.com> wrote in message
news:3f******** *************@n ews.dial.pipex. com...
theres a cfm to asp conversion tool on hotscripts.com, dont know if
its of
any use
mark

"John Reid" <Jo*******@optu snet.com.au> wrote in message
news:3f******** *************** @news.optusnet. com.au...
> G'day,
> On the server i am using a asp script to loop thru an xml file
that contains
> a number of email addresses. When i pick up a email address i
would like to
> call a cfm template that sends the email. I have tried the
below: > Server.Execute( "sendemail.cfm? Email=john");
> but it gives me a ASP 0231 error. i suspect that i can only call

another asp
> script. Interestingly i only get an error when i use the string

parameter
> any thoughts? i would like to use CF as the mail delivery

vehicle


Jul 19 '05 #4
thanx, i like that idea, i am trying to find out the maximum number of
characters that i can use in the redirect. taking up on your approach, maybe
i could store the email data elsewhere and then read it into CFMAIL

salud

John

"Kris Eiben" <ei************ *********@yahoo .com> wrote in message
news:uT******** ******@TK2MSFTN GP11.phx.gbl...
Could you store up all the emails in a variable as you loop through, and
send that concatenated variable to the CF page through a redirect?

"John Reid" <Jo*******@optu snet.com.au> wrote in message
news:3f******** *************** @news.optusnet. com.au...
thanx Kris and Mark,

yes,but i do not know how to get it to loopthru the xml file, spitting

out a
email each time. And i am using CFMAIL ie

salud

John
eg
for (var i = players.nextNod e(); i; i = players.nextNod e())
{
Server.Execute( "sendemail.cfm? john=helen")
}
"Kris Eiben" <ei************ *********@yahoo .com> wrote in message
news:O5******** ******@tk2msftn gp13.phx.gbl...
Not if he's trying to use the CF mail server it's not.

When we need to use CFmail, we use
response.redire ct("whatever.cf m?var=blah"), with no problems. If
redirect works for you, could you rewrite that page so you can use it?
"mark | r" <ma**@nmd.freeu k.com> wrote in message
news:3f******** *************@n ews.dial.pipex. com...
> theres a cfm to asp conversion tool on hotscripts.com, dont know if its of
> any use
> mark
>
> "John Reid" <Jo*******@optu snet.com.au> wrote in message
> news:3f******** *************** @news.optusnet. com.au...
> > G'day,
> > On the server i am using a asp script to loop thru an xml file that contains
> > a number of email addresses. When i pick up a email address i would like to
> > call a cfm template that sends the email. I have tried the below: > > Server.Execute( "sendemail.cfm? Email=john");
> > but it gives me a ASP 0231 error. i suspect that i can only call
another asp
> > script. Interestingly i only get an error when i use the string
parameter
> > any thoughts? i would like to use CF as the mail delivery vehicle



Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
9687
by: bhennon | last post by:
Hey all, I have a small php script that calls a random image at the following page. http://www.2006ymcanationals.com/random.php IT WORKS IF I go directly to the above link. I am trying to call that in another page so that i get a random image the page is http://2006ymcanationals.com/index.php using <img
0
1549
by: Joe Ray | last post by:
Can anyone suggest a technique for calling a Perl Script within a JSP page. Thanx Raymis
0
1356
by: Leslaw Bieniasz | last post by:
Cracow, 16.09.2004 Hi, I have a problem with compiling the following construction involving cross-calls of class template methods, with additional inheritance. I want to have three class templates: ------------------------------------------ in file "Model.h":
8
4665
by: Jakej | last post by:
I've been using a javascript in an html file for a banner slider, and it works as desired. But I'd like to use it on more than one page and it would be great if I could transfer the code to a .js file and call it with the <script src="filename.js"></script> tags as I do for many other .js files. But, when I try to do that way, it doesn't work right. It will display the banner text, but only on the 0,0 page coordinate and doesn't slide....
13
10672
by: john.constantine | last post by:
Hi I have this code: template<typename ClassType> struct S { template<typename FunctionType> void member() {}; };
3
2786
by: just.starting | last post by:
Hi, My dot net client downloads files and checks for any new files time to time. The server is apache2.0.53 server. So what happens is that my file download thing works fine if I dont try to call any page from the server while downloading. If I try to call a single page while downloading a file then the page request goes time out and the server then closes the existing download stream and the client doestn't throw any exception. So many a...
8
3055
by: Plissken.s | last post by:
I have a template function which print out the content of a list: The following compiles: void PrintInt2 (int i) { cout << i << " "; } template <class T> void printList(T& list) {
3
1268
by: John Smith | last post by:
Hi All, I have a script which reads a data file, reads the characters one by one and if a certain character is meet it does something else, at the moment it echos the fact that it meet a certain character. I need it to take the characters it has read up to that point and present them to a database field thats forms part of a set of fields that will be updated at once. Then it will continue to read the remainder of the file and repeat...
9
2257
by: mickey22 | last post by:
Hi all, I have a template function implemented in test.cpp. test.h class test { template<typename T> void function1( );
0
8296
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8710
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8497
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7310
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2721
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1928
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1598
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.