IBM Security QRadar SOAR

 View Only
  • 1.  New line in email

    Posted 3 days ago

    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
    ------------------------------


  • 2.  RE: New line in email

    Posted 18 hours ago

    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
    ------------------------------



  • 3.  RE: New line in email

    Posted 18 hours ago

    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
    ------------------------------



  • 4.  RE: New line in email

    Posted 7 hours ago

    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
    ------------------------------