Connecting Tech Pros Worldwide Forums | Help | Site Map

Calling an coldfusion template from a ASP script

John Reid
Guest
 
Posts: n/a
#1: Jul 19 '05
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



Kris Eiben
Guest
 
Posts: n/a
#2: Jul 19 '05

re: Calling an coldfusion template from a ASP script


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" <mark@nmd.freeuk.com> wrote in message
news:3f1680b4$0$959$cc9e4d1f@news.dial.pipex.com.. .[color=blue]
> theres a cfm to asp conversion tool on hotscripts.com, dont know if[/color]
its of[color=blue]
> any use
> mark
>
> "John Reid" <John.Reid@optusnet.com.au> wrote in message
> news:3f15ffa6$0$26535$afc38c87@news.optusnet.com.a u...[color=green]
> > G'day,
> > On the server i am using a asp script to loop thru an xml file that[/color][/color]
contains[color=blue][color=green]
> > a number of email addresses. When i pick up a email address i would[/color][/color]
like to[color=blue][color=green]
> > 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[/color][/color]
another asp[color=blue][color=green]
> > script. Interestingly i only get an error when i use the string[/color][/color]
parameter[color=blue][color=green]
> > any thoughts? i would like to use CF as the mail delivery vehicle[/color][/color]


John Reid
Guest
 
Posts: n/a
#3: Jul 19 '05

re: Calling an coldfusion template from a ASP script


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" <eibenkthisisforspammers@yahoo.com> wrote in message
news:O5QJKmGTDHA.2312@tk2msftngp13.phx.gbl...[color=blue]
> 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" <mark@nmd.freeuk.com> wrote in message
> news:3f1680b4$0$959$cc9e4d1f@news.dial.pipex.com.. .[color=green]
> > theres a cfm to asp conversion tool on hotscripts.com, dont know if[/color]
> its of[color=green]
> > any use
> > mark
> >
> > "John Reid" <John.Reid@optusnet.com.au> wrote in message
> > news:3f15ffa6$0$26535$afc38c87@news.optusnet.com.a u...[color=darkred]
> > > G'day,
> > > On the server i am using a asp script to loop thru an xml file that[/color][/color]
> contains[color=green][color=darkred]
> > > a number of email addresses. When i pick up a email address i would[/color][/color]
> like to[color=green][color=darkred]
> > > 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[/color][/color]
> another asp[color=green][color=darkred]
> > > script. Interestingly i only get an error when i use the string[/color][/color]
> parameter[color=green][color=darkred]
> > > any thoughts? i would like to use CF as the mail delivery vehicle[/color][/color]
>
>[/color]


Kris Eiben
Guest
 
Posts: n/a
#4: Jul 19 '05

re: Calling an coldfusion template from a ASP script


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" <John.Reid@optusnet.com.au> wrote in message
news:3f16f391$0$26532$afc38c87@news.optusnet.com.a u...[color=blue]
> thanx Kris and Mark,
>
> yes,but i do not know how to get it to loopthru the xml file, spitting[/color]
out a[color=blue]
> 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" <eibenkthisisforspammers@yahoo.com> wrote in message
> news:O5QJKmGTDHA.2312@tk2msftngp13.phx.gbl...[color=green]
> > 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[/color][/color]
it?[color=blue][color=green]
> >
> > "mark | r" <mark@nmd.freeuk.com> wrote in message
> > news:3f1680b4$0$959$cc9e4d1f@news.dial.pipex.com.. .[color=darkred]
> > > theres a cfm to asp conversion tool on hotscripts.com, dont know[/color][/color][/color]
if[color=blue][color=green]
> > its of[color=darkred]
> > > any use
> > > mark
> > >
> > > "John Reid" <John.Reid@optusnet.com.au> wrote in message
> > > news:3f15ffa6$0$26535$afc38c87@news.optusnet.com.a u...
> > > > G'day,
> > > > On the server i am using a asp script to loop thru an xml file[/color][/color][/color]
that[color=blue][color=green]
> > contains[color=darkred]
> > > > a number of email addresses. When i pick up a email address i[/color][/color][/color]
would[color=blue][color=green]
> > like to[color=darkred]
> > > > call a cfm template that sends the email. I have tried the[/color][/color][/color]
below:[color=blue][color=green][color=darkred]
> > > > Server.Execute("sendemail.cfm?Email=john");
> > > > but it gives me a ASP 0231 error. i suspect that i can only call[/color]
> > another asp[color=darkred]
> > > > script. Interestingly i only get an error when i use the string[/color]
> > parameter[color=darkred]
> > > > any thoughts? i would like to use CF as the mail delivery[/color][/color][/color]
vehicle[color=blue][color=green]
> >
> >[/color]
>
>[/color]


John Reid
Guest
 
Posts: n/a
#5: Jul 19 '05

re: Calling an coldfusion template from a ASP script


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" <eibenkthisisforspammers@yahoo.com> wrote in message
news:uThiu2JTDHA.2248@TK2MSFTNGP11.phx.gbl...[color=blue]
> 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" <John.Reid@optusnet.com.au> wrote in message
> news:3f16f391$0$26532$afc38c87@news.optusnet.com.a u...[color=green]
> > thanx Kris and Mark,
> >
> > yes,but i do not know how to get it to loopthru the xml file, spitting[/color]
> out a[color=green]
> > 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" <eibenkthisisforspammers@yahoo.com> wrote in message
> > news:O5QJKmGTDHA.2312@tk2msftngp13.phx.gbl...[color=darkred]
> > > 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[/color][/color]
> it?[color=green][color=darkred]
> > >
> > > "mark | r" <mark@nmd.freeuk.com> wrote in message
> > > news:3f1680b4$0$959$cc9e4d1f@news.dial.pipex.com.. .
> > > > theres a cfm to asp conversion tool on hotscripts.com, dont know[/color][/color]
> if[color=green][color=darkred]
> > > its of
> > > > any use
> > > > mark
> > > >
> > > > "John Reid" <John.Reid@optusnet.com.au> wrote in message
> > > > news:3f15ffa6$0$26535$afc38c87@news.optusnet.com.a u...
> > > > > G'day,
> > > > > On the server i am using a asp script to loop thru an xml file[/color][/color]
> that[color=green][color=darkred]
> > > contains
> > > > > a number of email addresses. When i pick up a email address i[/color][/color]
> would[color=green][color=darkred]
> > > like to
> > > > > call a cfm template that sends the email. I have tried the[/color][/color]
> below:[color=green][color=darkred]
> > > > > 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[/color][/color]
> vehicle[color=green][color=darkred]
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Closed Thread