Title: Attachments Missing
Last modified: August 31, 2016

---

# Attachments Missing

 *  [fssbob](https://wordpress.org/support/users/fssbob/)
 * (@fssbob)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/attachments-missing/)
 * 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/](https://wordpress.org/plugins/postman-smtp/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [fssbob](https://wordpress.org/support/users/fssbob/)
 * (@fssbob)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/attachments-missing/#post-7147460)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/postman-smtp_7c7b78.svg)
 * [Postman SMTP Mailer/Email Log](https://wordpress.org/plugins/postman-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postman-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postman-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/postman-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postman-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postman-smtp/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [fssbob](https://wordpress.org/support/users/fssbob/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/attachments-missing/#post-7147460)
 * Status: not resolved