Hi
im having a slight problem with this mail class, it
works fine up until the loop runs more than 13 times, is this a looping problem
or a mail problem? Ive attatched the mail class and the code is
below:
include
"./include/mime_mail.inc";
$fp=fopen(TestFile.txt, "w"); /*loop certain number of times */
for ($val = 0; $val < $NumCases;
++$val){
if ($val < $NumCases) { blah blah
fwrite($fp,"$FName$IDNum$Addr1$sep$Addr2$sep$Addr3
etc etc"); /*these are vars written to the test file*/
}
else
{
/*do nothing*/
}
fclose( $fp );
$filename = TestFile.txt;
$content_type ="text/plain";
$fd = fopen($filename, "r"); $data = fread($fd,
filesize($filename));
fclose($fd); /*create new mail object
$mail = new mime_mail; $mail->from = "mailto:[EMAIL PROTECTED]; $mail->to = "$Address"; $mail->subject = "Test"; $mail->body = "Test file sent"; $mail->add_attachment($data, $filename, $content_type); $mail ->send(); Im really stumped here, any help will be greatly
appreciated
Thanks
Wade
|
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]