Skip to main content
Best Answer

POST /manage/v1/user/send_mail Ignores Formatting

  • September 19, 2023
  • 3 replies
  • 27 views

Forum|alt.badge.img+1

Hello all,

I am making use of the POST /manage/v1/user/send_mail User API operation with the following request body:

{
  "id_user":xxxxx ,
  "subject": "Test",
  "message": "Hello\nWorld\n"
}

The email is send successfully to the user but all formatting (in this case the \n characters) are ignored!  This is what the email looks like: 

Any idea how (or if it is possible) to preserve the formatting?

 

Cheers,

George

Best answer by alekwo

@GeorgeK did you try to use HTML formatting… “Hello<br>World<br>”?

View original
Did this post help you find an answer to your question?

3 replies

alekwo
Guide III
Forum|alt.badge.img+1
  • Guide III
  • 357 replies
  • Answer
  • September 19, 2023

@GeorgeK did you try to use HTML formatting… “Hello<br>World<br>”?


Forum|alt.badge.img+1
  • Author
  • Contributor I
  • 11 replies
  • September 19, 2023

OMG!  It never crossed my mind.   Thank you so much @alekwo

 

To Docebo:  Please provide better API docs!


Bfarkas
Hero III
Forum|alt.badge.img+5
  • Hero III
  • 3582 replies
  • September 22, 2023

This API endpoint always amuses me for some reason. I always think it does more than it does, then remember and just end up using a mail service instead :)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings