Page 1 of 1
line break in outbound text message in Plumdev
Posted: Mon Jan 29, 2018 9:56 pm
by sachinc
Hi,
I want to use line break in outbound text message . I have used \n but it's not working.
Thanks
Sachin
Re: line break in outbound text message in Plumdev
Posted: Tue Jan 30, 2018 4:19 pm
by support
Hi Sachin,
Unfortunately this is not currently a feature available in our SMS API. However, our developers are actively investigating adding support for that and will reply to this post when it becomes available.
Regards,
Plum Support
Re: line break in outbound text message in Plumdev
Posted: Wed Jan 31, 2018 4:22 pm
by support
Hi Sachin,
This fix is now live, please feel free to test this out and let us know if you have any additional questions.
Regards,
Plum Support
Re: line break in outbound text message in Plumdev
Posted: Mon Apr 22, 2019 12:23 pm
by jparnell
Hello, I am also interested in using line wraps in outbound SMS messages. I'm including \n in the message but it sends a visible "\n" to the end user. Is there something else I can try?
Thanks,
J.R. Parnell
Re: line break in outbound text message in Plumdev
Posted: Mon Apr 22, 2019 1:30 pm
by support
Hi,
When using a line break, the message must be in double quotes. For example,
Code: Select all
$params['body'] = "This is a notification. \n This is on a new line.";
will work, but using single quotes will not work. Please let us know if you have any additional questions.
Kindly,
Plum Support
Re: line break in outbound text message in Plumdev
Posted: Mon Apr 22, 2019 3:24 pm
by jparnell
Just an update, the solution worked! Thanks for your assistance.