Git Product home page Git Product logo

Comments (17)

richleland avatar richleland commented on July 19, 2024 1

Ok cool thanks for the feedback!

from wordpress-sparkpost.

richleland avatar richleland commented on July 19, 2024

Thanks for submitting @billz - what are your thoughts around this being a drop down vs. just an input field. I'm thinking input field for the simple fact that we don't know how many templates a user might have and that list can get very long.

from wordpress-sparkpost.

billz avatar billz commented on July 19, 2024

@richleland an input field would do it, sure. Mandrill uses a drop down. We have a limited set of templates so it works well enough for us, although our case may not be typical.
mandrill-template

from wordpress-sparkpost.

rajumsys avatar rajumsys commented on July 19, 2024

I, personally, am not sure about the use case. If you select a template, how regular wp emails will be sent? For example, the new user registration, forget password or any other emails that wordpress core and/or plugins send. Do you want all of these emails to use the same template?

It would be great if you enlighten us with your use cases. Thanks

from wordpress-sparkpost.

billz avatar billz commented on July 19, 2024

@rajumsys In our case, yes--a single template is used for all outgoing wp email. Our template is essentially just a logo header and footer links that wraps the dynamic content. Mandrill gives us the option of applying one template globally this way. This suffices for our needs and, I suspect, is typical for most wp sites.

from wordpress-sparkpost.

rajumsys avatar rajumsys commented on July 19, 2024

@billz That totally makes sense to me. Thanks for explaining :).

from wordpress-sparkpost.

jpw94 avatar jpw94 commented on July 19, 2024

@billz We do the same though I have several domains sharing the same Mandrill account and I choose the one for the appropriate domain.

from wordpress-sparkpost.

jpw94 avatar jpw94 commented on July 19, 2024

What is the status of this issue?

from wordpress-sparkpost.

jpw94 avatar jpw94 commented on July 19, 2024

At the risk of sounding whiney, I'll ask again. Is there a path or timeframe for this? A reply would be greatly appreciated as it will influence our decision on settling on this platform.

Thanks in advance.

from wordpress-sparkpost.

richleland avatar richleland commented on July 19, 2024

Hi @jpw94 not whiney at all. I'm going to take a look at what's required for the implementation of this. I don't have an exact time frame for you, but I'll post again as soon as I have an idea of what's involved.

from wordpress-sparkpost.

richleland avatar richleland commented on July 19, 2024

@jpw94 @billz I want to make sure I understand what your Mandrill templates look like. So you've got a header/footer - and then I assume you have an area in the template that has a variable like {{ content }} and basically the WP content gets substituted in there - is that correct? Is there a specific variable name you use that Mandrill enforced?

from wordpress-sparkpost.

richleland avatar richleland commented on July 19, 2024

I created a PR (#22) with a first crack at this. It's just an open template field, but it works. For now it requires that the template have a variable {{{content}}} in it.

Would love feedback if you're interested in checking out the code to your wp-content/plugins folder.

from wordpress-sparkpost.

jpw94 avatar jpw94 commented on July 19, 2024

@richleland thanks! would it help if i create a screen capture video which illustrated the functionality?

from wordpress-sparkpost.

richleland avatar richleland commented on July 19, 2024

Oh that would be awesome @jpw94. I'd appreciate you taking the time to do that! Alternatively if you just want to copy and paste some of your template in Mandrill that would help too.

from wordpress-sparkpost.

jpw94 avatar jpw94 commented on July 19, 2024

Here is a screenshot of the plugin interface : http://www.awesomescreenshot.com/image/1091848/720b1b04be395ee416a4d1c1f987416a

as noted, there is a dropdown box which exposes stored templates in the Mandrill account.

from wordpress-sparkpost.

richleland avatar richleland commented on July 19, 2024

OK perfect - thanks for posting that. That help text under the field is what I was looking for. Basically in your templates you have mc:edit="main". For the PR I submitted, you'd change that to {{{content}}}. How does that sound?

from wordpress-sparkpost.

rajumsys avatar rajumsys commented on July 19, 2024

Latest version with template support is released.

from wordpress-sparkpost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.