How to format email body text
![Mr_English](https://us.v-cdn.net/6037124/user_avatars/1271230.jpg)
I have a Task that sends an email to a list of users via sendgrid_basic_send.
The sending works fine.
My question is about the email body. I created a text variable and entered the body text into the value field. This is basically a string of text. Is there a way to format the text, e.g. new lines? I need 2 or 3 lines of text.
Thanks.
Best Answers
-
Hi,
Usually I'm creating a structure of the email in sendgrid dynamic email and put parameters wherever I need some dynamic text. If in your case a fair share of email content is static across the users you are sending it to I would suggest to explore that path.
-
@Cameron B That's really helpful for getting me started. Thanks Cameron.
Answers
-
"value": "<p>hello from twilio sendgrid! </p><p>sending with the email service trusted by developers and marketers for <strong>time-savings</strong>, <strong>scalability</strong>, and <strong>delivery expertise</strong>. </p><p>%open-track%</p>"Sengrid's basic send, without a template, uses HTML that you pass within the content object.
Sengrid's basic send, without a template, uses HTML that you pass within the content object.
I pasted the value from their cURL example found here. I then formatted it with jsonlint.com for easy reading. Hope this helps :)
-
@Pawel Magdanski Dynamic templates definitely look like the way to go in the future. Thanks.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback