Comments (6)
Please try setting a non-empty string for the body value.
from sendgrid-ruby.
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.
Can you do '<%body%>'?
from sendgrid-ruby.
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.
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.
Thanks to you as well!
from sendgrid-ruby.
Related Issues (20)
- Request: Make it possible to pass http_options config when initialize API HOT 1
- Ruby 3 support HOT 2
- Is sendgrid-ruby still ruby 2.2. compatible? HOT 2
- Unable to verify signature for testing purposes HOT 7
- [BUG] Filter all messages does not work as described in documentation HOT 5
- How to add/remove contacts to a list via new marketing API? HOT 5
- Adding SendGrid addon on Heroku uses Basic Authentication with Username and Password HOT 4
- How to substitute \n or carriage returns HOT 1
- SendGrid::DuplicatePersonalizationError HOT 1
- BaseInterface class should be inside a module HOT 1
- Bad username / password HOT 5
- EML files turning into multiple attachments when using Inbound Parse HOT 5
- Personalization causes duplicate `to` email and sometimes causes multiple emails HOT 1
- Dynamic Templates overwritting list styles HOT 2
- Priority of sent emails HOT 1
- Helpers do not have all properties HOT 1
- The link to be notified of releases and breaking changes is returning a 500 from Heroku HOT 1
- Multiple Emails HOT 3
- uninitialized constant SendgridService::Personalization HOT 1
- Error in ruby documentation for associating authenticated domains with a subuser
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sendgrid-ruby.