kobaken | 2018-10-30 08:42:23 UTC | #1
Hi,
/api/v2/conversations/emails
How do I put a line break in the text? It will fail if I enter <BR >only either <text body> or <html body>, but if you put it in both, it works fine.
When <BR> is inserted in only <text body> , the line breaks on the screen, but the mail that arrived is in a state where it is not breaking new line, and display "<BR>".
I want to know how to use <text body> and <html body>.
tim.smith | 2018-10-30 13:13:41 UTC | #2
I'm not sure what you're asking. What kind of email are you trying to create, and what characters are you using? Try using code blocks if you're using special characters or something.
anon39326996 | 2018-10-30 13:15:15 UTC | #3
Another tip may be to use the PureCloud UI to send a correctly formatted email and take a look at the HTML for that.
kobaken | 2018-10-30 23:53:40 UTC | #4
I create email via API (/api/v2/conversations/emails).
I created a standard email body in <text body> filed. Through PureCloudUI it's look fine, but when it receives and displays it, it will become a state load with no line breaks.
--sample body-- 1234567890 abcdefghijk
--receive body-- 1234567890abcdefghijk
I want to place a line feed at the proper position.
tim.smith | 2018-10-31 15:19:20 UTC | #5
Have you tried Lucie's suggestion to compare the contents (via data from the API) of your email vs. one sent using the PureCloud UI?
kobaken | 2018-11-01 02:27:49 UTC | #6
I confirmed the AmazonSES guide, there is a description to use the line feed code "\ n", and it worked fine.
Thanks, all.
system | 2018-12-02 02:27:30 UTC | #7
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 3848