netAction

Show:

What's happening?

  • Comment: Empty Files produce warning

    In my case, I have a webmail form. And it could be, that someone wants to send an empty file. Do you really think that it is ok if your code produces warnings? Or should I write on my webpage "Please do not send empty files, or you'll get a warning!".

    2007-11-08 07:33:43 UTC in PHPMailer

  • Comment: Empty Files produce warning

    In my case, I have a webmail form. And it could be, that someone wants to send an empty file. Do you really think that it is ok if your code produces warnings? Or should I write on my webpage "Please do not send empty files, or you'll get a warning!".

    2007-11-08 07:32:21 UTC in PHPMailer

  • Comment: Empty Files produce warning

    Just fix the line from $file_buffer = fread($fd, filesize($path)); to if (filesize($path)) $file_buffer = fread($fd, filesize($path));.

    2007-04-20 09:36:10 UTC in PHPMailer

  • Empty Files produce warning

    If I want to send an empty file, the mailer produces a warning. Warning: fread() [function.fread]: Length parameter must be greater than 0 in /var/www/phpmailer/class.phpmailer.php on line 1083 $mail->AddAttachment($attach_tmp_name, $attach_name); Why don't you send an empty file, as the user wanted it? Thomas.

    2007-04-20 09:27:43 UTC in PHPMailer

About Me

  • 2004-08-23 (5 years ago)
  • 1109593
  • netaction (My Site)
  • netAction

Send me a message