Skip to main content
Best Answer

POST /manage/v1/user/send_mail Ignores Formatting

  • September 19, 2023
  • 3 replies
  • 28 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>”?

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+6
  • Hero III
  • 3596 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 :)