• UpdraftPlus normally attaches a text file containing log entries to its backup status notification emails. I just noticed that when sent via Postman SMTP / Google OAuth 2.0, that attachment is missing. I’ve checked the session transcript in the Postman SMTP log and don’t see any error or attachment-related entries.

    Thanks.

    https://wordpress.org/plugins/postman-smtp/

Viewing 1 replies (of 1 total)
  • Thread Starter fssbob

    (@fssbob)

    I’d love to get some attention on this. I believe UpdraftPlus is the most widely used WordPress backup plugin at this point. After each activity it normally sends a status email with an attached text file containing the log entries. It works fine until Postman SMTP takes over wp_mail(). With Postman SMTP active, the text file attachment is stripped from the status email.

    UpdraftPlus support gave me this to pass to you in case it helps.

    this is how UD is adding the attachments, via a hook to phpmailer_init:

    public function phpmailer_init($phpmailer) {
    global $updraftplus;
    if (empty($this->attachments) || !is_array($this->attachments)) return;
    foreach ($this->attachments as $attach) {
    $mime_type = (preg_match(‘/\.gz$/’, $attach)) ? ‘application/x-gzip’ : ‘text/plain’;
    try {
    $phpmailer->AddAttachment($attach, ”, ‘base64’, $mime_type);
    } catch (Exception $e) {
    $updraftplus->log(“Exception occurred when adding attachment (“.get_class($e).”): “.$e->getMessage());
    }
    }
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Attachments Missing’ is closed to new replies.