The Exchange Online app does send HTML. What is the error you see when you use <br> ?
# Create the message in the required json format
message_json = {"message": {"subject": subject,
"body": {"contentType": "HTML", "content": body},
"toRecipients": recipient_list},
"saveToSentItems": "true"}
------------------------------
AnnMarie Norcross
------------------------------
Original Message:
Sent: Mon July 08, 2024 01:17 AM
From: Maria Czapkowska
Subject: New line in email
I appreciate that you're trying to help, but you are wrong. Microsoft Exchange Online app doesn't understand html and adding a break line caused an error, I tried it before posting the question.
------------------------------
Maria Czapkowska
Original Message:
Sent: Mon July 08, 2024 12:50 AM
From: Dũng Đặng
Subject: New line in email
Hi Maria Czapkowska,
I think you are misunderstanding how to transmit data. For mail, it is mostly transmitted as HTML body. In this case, if you want to break the line, you can try replacing "/n" with "<br>".
------------------------------
Dũng Đặng
Original Message:
Sent: Fri July 05, 2024 02:31 AM
From: Maria Czapkowska
Subject: New line in email
I'm trying to send emails from SOAR with the Microsoft Exchange Online app. At first I made a form that would send emails, now I want to make some standard reply emails to send them quickly. The issue I'm facing is that it's ignoring new lines. What I have in my code:
inputs.exo_message_body = """Hi,\nThank you for reporting suspicious content, the email will be analyzed.\nWe'll let you know the outcome.\nKind regards,\ncyber team"""
What I get:
Hi,Thank you for reporting suspicious content, the email will be analyzed.We'll let you know the outcome.Kind regards,cyber team
Why is SOAR ignoring new lines how to I make it work?
PS. it's a rough translation of the response
------------------------------
Maria Czapkowska
------------------------------