Git Product home page Git Product logo

Comments (4)

andrewrk avatar andrewrk commented on August 10, 2024

Seems like a valid use case. Couple things to note:

  1. Some dispatching services, such as SendGrid, will automatically render a text version given the html version and do the right thing with it.
  2. In the absence of this service, it makes sense for swig-email-templates to automatically render a text version based on the html version.
  3. If your project demands complete control over the plain text version, it makes sense to be able to override this functionality and manually provide a text version.

I'm curious where you fit in on that list, @paintzen.

from swig-email-templates.

 avatar commented on August 10, 2024

I use Amazon SES for sending emails, and although it is ambiguous in the documentation whether or not a text version is required, my own tests, indicate it is. I would be fine for swig-email-templates to auto generate a text version. Nothing I'm doing is different between the two (content wise).

I'd much prefer to use swig-email-templates mainly because of the inheritance. Nothing crazy, just don't want to keep track of updating fifteen templates when we tweak our logo.

from swig-email-templates.

andrewrk avatar andrewrk commented on August 10, 2024

Makes sense. Feel free to make a pull request. This project is only 122 lines of code. Otherwise I'll get around to it eventually.

from swig-email-templates.

albertpeiro avatar albertpeiro commented on August 10, 2024

+1 Would love to see the feature too! I can't start using it until it's available. Unfortunately text email -combined with HTML email version- is a whole lot more important than it might seem for spam filters. So for production ready developments I'd highly recommend dropping this in. Current implementation looks awesome and I'm excited to be able to use this module. Been using node-email-templates but would love switching to a reusable design! Thank you.

from swig-email-templates.

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.