Calling an coldfusion template from a ASP script

J

John Reid

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
 
K

Kris Eiben

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?
 
J

John Reid

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")
}
 
K

Kris Eiben

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?
 
J

John Reid

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top