• Resolved MiKeZZa

    (@mikezza)


    I would like to send PDF attachments to my WordPress site with Postie. I now have this code:

    Open newsletter by clicking this link:

    {ICON} {FILENAME}

    But on the old version of this page (manually uploaded and displayed with Embed Any Doc) the PDF is shown to the user (it’s included). So I want to keep going with automating this process, but I would like to make the display a little more fancy. Can somebody tell me; is this possible?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Open a post that looks like you want and view the HTML editor. Then use that as the basis for your attachment template in Postie.

    Thread Starter MiKeZZa

    (@mikezza)

    Wow great. Thank you.

    I was thinking about that option, but I didn’t know that that editor existed.

    This did solve my issue!

    Thanks Wayne for your response to this. Unfortunately I do not understand what you mean by open a post that looks like you want. I have the same problem as Mike. I would like the pdf to be embedded and immediately seen in the post rather than having a link. Is this possible or is there an add-on I can buy to do this? I do not have an existing post that looks like I want; I just want the pdf to be seen immediately and not as a link.

    Thread Starter MiKeZZa

    (@mikezza)

    Hi @bid19,

    I’ve fixed it with this code:

    [embeddoc url="{FILELINK}" download="all" viewer="google" width="100%" height="100%"]

    I’m not sure if this works from scratch (you can try) or that it’s enabled by a plugin that I already have on this site…

    Good luck!

    Thanks Mike,

    Sorry for my ignorance here but where do I place that code; is it in the body of the email?

    Thanks

    Alan

    Thread Starter MiKeZZa

    (@mikezza)

    In WP-Admin. Click on Postie and go to ‘Attachments’ tab. At Attachment template there is a preview field. There you must paste this.

    Hi Mike,

    That did not work for me. I just got this message for the post.

    default_charset: WARNING no default_charset set see https://php.net/manual/en/ini.core.php#ini.default-charset

    Are you using another plugin to read the template?

    Thanks

    Alan

    Thread Starter MiKeZZa

    (@mikezza)

    Maybe, I don’t know. I didn’t build this site from scratch…. But what you must do is first try to make it work to include a regular PDF in a regular post/page. And after that you ‘translate’ this to something variable….

    You can try the plugin PDF Embedder (Google it for more support) but that can (after install) be called this way:
    [pdf-embedder url="https://mysite.com/wp-content/uploads/2015/01/Plan-Summary.pdf"]

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Display mailed PDF’ is closed to new replies.