Title: Cannot send with attachment
Last modified: December 4, 2020

---

# Cannot send with attachment

 *  Resolved [damcevski](https://wordpress.org/support/users/damcevski/)
 * (@damcevski)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/cannot-send-with-attachment/)
 * Hi,
 * All works fine except that whenever I set the ‘attachments’ array, the email 
   is not sent.
    Using the official example to test:
 * ‘attachments’ => array(
    array( ‘type’ => ‘text/plain’, ‘name’ => ‘myfile.txt’,‘
   content’ => ‘ZXhhbXBsZSBmaWxl’ ) ),
 * Thanks for any suggestions!
 * Cheers,
    Igor

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Matt Miller](https://wordpress.org/support/users/millermedianow/)
 * (@millermedianow)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cannot-send-with-attachment/#post-13778377)
 * Hi [@damcevski](https://wordpress.org/support/users/damcevski/), can you elaborate
   on how you are attempting to set this attachments array? Is this with the wp_mail()
   function.
 * One simple way to send emails with attachments using this plugin is just to use
   the wp_mail() function. If that is what you are doing, the $attachments parameter
   only takes a string or an array of strings that are file paths to the file you
   want to attach.
 * [https://developer.wordpress.org/reference/functions/wp_mail/](https://developer.wordpress.org/reference/functions/wp_mail/)
 * When using wp_mail(), this plugin will then intercept it and route it through
   Mandrill.
 * Let me know if that helps!
 *  Plugin Author [Matt Miller](https://wordpress.org/support/users/millermedianow/)
 * (@millermedianow)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-with-attachment/#post-14054309)
 * Closing due to inactivity. If we still to revisit, feel free to open up a new
   support request and we are happy to help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cannot send with attachment’ is closed to new replies.

 * ![](https://ps.w.org/send-emails-with-mandrill/assets/icon-256x256.png?rev=1920659)
 * [Send Emails with Mandrill](https://wordpress.org/plugins/send-emails-with-mandrill/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/send-emails-with-mandrill/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/send-emails-with-mandrill/)
 * [Active Topics](https://wordpress.org/support/plugin/send-emails-with-mandrill/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/send-emails-with-mandrill/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/send-emails-with-mandrill/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Matt Miller](https://wordpress.org/support/users/millermedianow/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/cannot-send-with-attachment/#post-14054309)
 * Status: resolved