twilio-java
twilio-java copied to clipboard
Issue with sending SMS with Twilio Content Template
Hi,
Issue Summary
I have been using Twilio's Content Template builder to build templates. When using content Sid to send the SMS. The receiver receives '\n' for each new line in the template. It has started occurring today.
Content Template Type = twilio/text
Steps to Reproduce
- Create a template having multiple lines
- Run the code that sends SMS to receiver.
- You'll see that SMS received has '\n' for each new line in the template
Code Snippet
var message = Message.creator(to, from, "")
.setContentSid(templateId)
.create();
Technical details:
- twilio-java version: 9.14.1 and 10.6.0
- java version: 17