Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter holodoctor1

    (@holodoctor1)

    Followup- if this is not the expected behavior, is there something I can comment out in the plugin code to prevent these “invalid” email from logging, so they don’t fill up the log?

    Thank you!

    Anonymous User 13300557

    (@anonymized-13300557)

    Hi,

    A mail only gets moved into the error list when wp_mail says, it couldn’t be sent (returns false).
    At the moment the plugin can’t tell you why wp_mail says, the email wasn’t sent but better logging is planned for a release in the near future.

    If you want to disable the storage of mail errors you can change the following code

    foreach($mails as $file => $data) {
        if($this->sendMail($data))
            $this->deleteFile($file);
        else
            rename($file, self::getUploadDir(true) . substr($file, strrpos($file, "/") + 1));
    }

    in classes/SMTPMailingQueue.php in lines 324 – 329 to

    foreach($mails as $file => $data) {
        $this->sendMail($data)
    }

    Please note that this will be overridden when the plugin gets updated. Also, you won’t see any sending errors anymore.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘All emails going in Sending Error, but still send’ is closed to new replies.