twilio-java icon indicating copy to clipboard operation
twilio-java copied to clipboard

Issue with sending SMS with Twilio Content Template

Open satish-rheumera opened this issue 1 year ago • 0 comments

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:

  • twilio-java version: 9.14.1 and 10.6.0
  • java version: 17

satish-rheumera avatar Oct 11 '24 14:10 satish-rheumera