Send mail to office365

Hello.
Im trying to send message to my office365 mail. Im create destination with
Webhook URL: https://outlook.office.___/webhook/… (checked with Postman - OK. )
Header information: Content-Type application/json

But when I`m trying to send test message I got an error
java.io.IOException: Failed: HttpResponseProxy{HTTP/1.1 400 Bad Request [Cache-Control: no-cache, Pragma: no-cache, Content-Length: 49, Content-Type: text/plain; charset=utf-8, Expires: -1, request-id: 5f1db2ad-c16a-4507-885c-7e6ba6e17589, X-CalculatedBETarget: DB3PR0302MB3369.EURPRD03.PROD.OUTLOOK,___ X-BackEndHttpStatus: 400, X-AspNet-Version: 4.0.30319, X-CafeServer: DB6PR07CA0083.EURPRD07.PROD.OUTLOOK.___, X-BEServer: DB3PR0302MB3369, X-Powered-By: ASP.NET, X-FEServer: DB6PR07CA0083, X-MSEdge-Ref: Ref A: 0677A1BCCCD1467DAD00D288E626BD8D Ref B: FRAEDGE0611 Ref C: 2019-04-09T07:04:25Z, Date: Tue, 09 Apr 2019 07:04:24 GMT] ResponseEntityProxy{[Content-Type: text/plain; charset=utf-8,Content-Length: 49,Chunked: false]}}

How can I change Content-Type: form text/plain to application/json?

New users cant post more than 2 links so Im replace .com to .___ in log message.

1 Like

Solved.
Change
Header information: Content-Type application/json
to
Header information: Content-Type plain/text

4 Likes