I'm generating an automatic email usint CDONTS and I'm having trouble.
The email has an html header that works wonderfully. My problem is the body, I can't seem to figure out the syntax.
The body is this set of looped records.
Do Until TestResult.EOF
No = TestResult("QuestionNo"
Procedure = TestResult("Procedure"
PF = TestResult("PassFail"
tcomment = TestResult("Comments"%>
body = <tr><td>No & Procedure & PF & tcomment</td></tr>
TestResult.MoveNext
Loop
mail.body = header & body
This is giving me the last record only of the recordset.
The email has an html header that works wonderfully. My problem is the body, I can't seem to figure out the syntax.
The body is this set of looped records.
Do Until TestResult.EOF
No = TestResult("QuestionNo"
Procedure = TestResult("Procedure"
PF = TestResult("PassFail"
tcomment = TestResult("Comments"%>
body = <tr><td>No & Procedure & PF & tcomment</td></tr>
TestResult.MoveNext
Loop
mail.body = header & body
This is giving me the last record only of the recordset.