473,503 Members | 1,629 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 2503
Not if he's trying to use the CF mail server it's not.

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

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

"John Reid" <Jo*******@optusnet.com.au> wrote in message
news:3f***********************@news.optusnet.com.a u...
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.nextNode(); i; i = players.nextNode())
{
Server.Execute("sendemail.cfm?john=helen")
}
"Kris Eiben" <ei*********************@yahoo.com> wrote in message
news:O5**************@tk2msftngp13.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.redirect("whatever.cfm?var=blah"), with no problems. If
redirect works for you, could you rewrite that page so you can use it?

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

its of
any use
mark

"John Reid" <Jo*******@optusnet.com.au> wrote in message
news:3f***********************@news.optusnet.com.a u...
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*******@optusnet.com.au> wrote in message
news:3f***********************@news.optusnet.com.a u...
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.nextNode(); i; i = players.nextNode())
{
Server.Execute("sendemail.cfm?john=helen")
}
"Kris Eiben" <ei*********************@yahoo.com> wrote in message
news:O5**************@tk2msftngp13.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.redirect("whatever.cfm?var=blah"), with no problems. If
redirect works for you, could you rewrite that page so you can use it?
"mark | r" <ma**@nmd.freeuk.com> wrote in message
news:3f*********************@news.dial.pipex.com.. .
theres a cfm to asp conversion tool on hotscripts.com, dont know if
its of
any use
mark

"John Reid" <Jo*******@optusnet.com.au> wrote in message
news:3f***********************@news.optusnet.com.a u...
> 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**************@TK2MSFTNGP11.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*******@optusnet.com.au> wrote in message
news:3f***********************@news.optusnet.com.a u...
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.nextNode(); i; i = players.nextNode())
{
Server.Execute("sendemail.cfm?john=helen")
}
"Kris Eiben" <ei*********************@yahoo.com> wrote in message
news:O5**************@tk2msftngp13.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.redirect("whatever.cfm?var=blah"), with no problems. If
redirect works for you, could you rewrite that page so you can use it?
"mark | r" <ma**@nmd.freeuk.com> wrote in message
news:3f*********************@news.dial.pipex.com.. .
> theres a cfm to asp conversion tool on hotscripts.com, dont know if its of
> any use
> mark
>
> "John Reid" <Jo*******@optusnet.com.au> wrote in message
> news:3f***********************@news.optusnet.com.a u...
> > 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
9668
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...
0
1529
by: Joe Ray | last post by:
Can anyone suggest a technique for calling a Perl Script within a JSP page. Thanx Raymis
0
1340
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...
8
4647
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...
13
10645
by: john.constantine | last post by:
Hi I have this code: template<typename ClassType> struct S { template<typename FunctionType> void member() {}; };
3
2776
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...
8
3035
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
1252
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...
9
2248
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
7072
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...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7319
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...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
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,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
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...
0
1498
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 ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.