• Resolved damcevski

    (@damcevski)


    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

    (@millermedianow)

    Hi @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/

    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

    (@millermedianow)

    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.