Coder Social home page Coder Social logo

Comments (6)

thinkingserious avatar thinkingserious commented on September 20, 2024

Please try setting a non-empty string for the body value.

from sendgrid-ruby.

wmantegna avatar wmantegna commented on September 20, 2024

I've tried using 'hello' as the 'html' value, and I get the following response:

hello

This is my SendGrid Template
This is a substitution: bill

My goal is to only send the Template in the email, so that a non-technical person can use the SendGrid WYSIWYG editor to maintain the template over time. In the above example, I only want the last two lines of that email to be seen by the recipient.

from sendgrid-ruby.

thinkingserious avatar thinkingserious commented on September 20, 2024

Can you do '<%body%>'?

from sendgrid-ruby.

wmantegna avatar wmantegna commented on September 20, 2024

The <%body%> tag is the first line in my template. Looks like if I move this tag to the bottom that the html text I pass in displays at the bottom of the email, which I can work with.

One last question, is there a way to remove the <%body%> tag from the Template and still have it work, or to replace it entirely? I'm hoping to be able to do as much of the email design as possible in the WYSIWYG editor.

from sendgrid-ruby.

thinkingserious avatar thinkingserious commented on September 20, 2024

No, you must have the <%body%> tag.

Thanks for sharing your workaround. I'll push your feedback up to the product team.

Thanks!

from sendgrid-ruby.

wmantegna avatar wmantegna commented on September 20, 2024

Thanks to you as well!

from sendgrid-ruby.

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.