i turned error reporting on, and here is the output, along with my echoes.
setting ini settings...
starting while loop...
Warning: odbc_result(): Field index is larger than the number of fields in d:\inetpub\sliquid\wwwRoot\protected\dist_email_form.php on line 221
sending mail...
Warning: mail(): SMTP server response: 503 must have sender and recipient first in d:\inetpub\sliquid\wwwRoot\protected\dist_email_form.php on line 237
sending mail...
colin@sliquid.comMail successfully sent!
Warning: odbc_result(): Field index is larger than the number of fields in d:\inetpub\sliquid\wwwRoot\protected\dist_email_form.php on line 221
sending mail...
Warning: mail(): SMTP server response: 503 must have sender and recipient first in d:\inetpub\sliquid\wwwRoot\protected\dist_email_form.php on line 237
Warning: odbc_result(): Field index is larger than the number of fields in d:\inetpub\sliquid\wwwRoot\protected\dist_email_form.php on line 221
sending mail...
Warning: mail(): SMTP server response: 503 must have sender and recipient first in d:\inetpub\sliquid\wwwRoot\protected\dist_email_form.php on line 237
221 is
$email = odbc_result($result, $i);
237 is
if(mail($email, $subject, $message, $headers)) {