469,289 Members | 2,330 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,289 developers. It's quick & easy.

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 2415
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by bhennon | last post: by
reply views Thread by Joe Ray | last post: by
reply views Thread by Leslaw Bieniasz | last post: by
13 posts views Thread by john.constantine | last post: by
8 posts views Thread by Plissken.s | last post: by
3 posts views Thread by John Smith | last post: by
9 posts views Thread by mickey22 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.