twilio / twilio-java

A Java library for communicating with the Twilio REST API and generating TwiML.
MIT License
491 stars 430 forks source link

Issue with sending SMS with Twilio Content Template #820

Open satish-rheumera opened 1 month ago

satish-rheumera commented 1 month ago

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

  1. Create a template having multiple lines
  2. Run the code that sends SMS to receiver.
  3. 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: