• I’m trying to automate a blog post of a weekly newsletter that gets sent out by Constant Contact. The required footer includes an unsubscribe link (and other stuff) that we don’t want on the webpage for obvious reasons (someone could unsubscribe the email address from the list and it exposes the email name we’re using for postie)

    I can’t use the ‘delete everything below [text string]‘ feature because then it take out all the other ending html code leaving a bunch of open tables/divs/hmtl that mangles the page display. I ONLY want to remove the unsubscribe/footer that CC and other services require.

    Any ideas? Right now I have to take the email I receive from the list in my mail client, manually delete that footer and ‘send again’ to the wordpress email and its working that way. but… extra step.

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

    (@wayneallen-1)

    There is nothing in Postie to remove something from the middle of your email. However, there are some options.

    1 Build your own custom addon to parse the email and remove the footer. This can be simple or tricky depending on your circumstances.

    2 Switch Postie to create posts in draft status then edit the post to remove the footer and publish.

    Thread Starter bhagemann

    (@bhagemann)

    Hi Wayne, thanks for the quick reply!

    1- I thought of that and looked at existing plugins, seems like it could be useful in general to remove a section inside an email. Being html makes this trickier for sure. The email footer from ConstantContact (and I assume Mailchimp and others) is wrapped in a single table with a unique string (<table class=3D”complianceAddress complianceAddress–padding-vertical” … </table>) and I think one could strip that section/table alone, BUT my php knowledge is limited and I’ll check with a programmer/friend about helping. He’s good with regex I think.

    2- Sending the email to draft status then needing to login to edit and then post would probably take longer than me just picking resend and editing it when I get the newsletter in my mail client.

    I was hoping that a if a common use of Postie is turning emails from mail lists into a blog posts others would have looked at it before. Maybe someone has found a better workaround or has added code to fix?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.