Question : CFMail variable format

I am using CFMAIL, but the 'To' variable must come out of a database. This is the code I used:



SELECT *
FROM Message





TO="#To#"
Subject="Error" type="HTML" server="cpp_mail_server" >

But it won't get the variable. What did I do wrong. This is the whole code:



Send Message


   

   
     
      


SELECT *
FROM Message




      


TO="#To#"
Subject="Error" type="HTML" server="cpp_mail_server" >
            
Does anyone know what I did wrong? Please help me!!

Greetings,

Alex

Answer : CFMail variable format

hi why didnt u ask that in cf topic area

it should have been
TO="#To#"
Subject="Error" type="HTML" server="cpp_mail_server" >


that will solve ur problem

jimmy
Random Solutions  
 
programming4us programming4us