We are running CF 4.5 with SQL Server. When I run the following script, I get multiple (identical) e-mails, many with the same subject. Is there anything wrong with my script? Is there a problem using <cfmail> within a <cfloop>?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<cfoutput>doing the loop<br></cfoutput>
<cfloop index="counter" from="1" to="10">
<cfmail to="snix@fallcomm.com"
from="ceser@icesa.org"
subject="TEST MESSAGE and counter=#counter#">
This is a test message.
</cfmail>
</cfloop>
</body>
</html>
Thanks much for your help!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<cfoutput>doing the loop<br></cfoutput>
<cfloop index="counter" from="1" to="10">
<cfmail to="snix@fallcomm.com"
from="ceser@icesa.org"
subject="TEST MESSAGE and counter=#counter#">
This is a test message.
</cfmail>
</cfloop>
</body>
</html>
Thanks much for your help!