import requests
cookies = {
'dtCookie': 'v_4_srv_14_sn_6FE1BC8E9A33D17104B45ACAEA40306E_perc_100000_ol_0_mul_1_app-3Abd04f5bd154f7157_1',
'rxVisitor': '1693500048477SFQ8STSKJ020TJB272DHGBRUR0QFPAAN',
'at_check': 'true',
'AMCVS_1EF86DCB632345E10A495F9E%40AdobeOrg': '1',
's_ecid': 'MCMID%7C50786250864729259581514810617929384934',
'AMCV_1EF86DCB632345E10A495F9E%40AdobeOrg': '179643557%7CMCIDTS%7C19601%7CMCMID%7C50786250864729259581514810617929384934%7CMCAAMLH-1694104851%7C6%7CMCAAMB-1694104851%7CRKhpRz8krg2tLO6pguXWp5olkAcUniQYPHaMWWgdJ3xzPWQmdj0y%7CMCOPTOUT-1693507251s%7CNONE%7CMCAID%7CNONE%7CvVersion%7C5.5.0',
'mbox': 'session#246861e2b1aa470b86c9f1bb49b3e696#1693501912|PC#246861e2b1aa470b86c9f1bb49b3e696.37_0#1756744852',
'rxvt': '1693501851956|1693500048480',
'dtPC': '14$300048472_510h-vFRKBMVHCRMLWSKVKDUUHMPUFRUKKDALM-0e0',
's_sq': 'upctelenetgroup%3D%2526c.%2526a.%2526activitymap.%2526page%253Dhttps%25253A%25252F%25252Flogin.prd.telenet.be%25252Fopenid%25252Flogin%2526link%253DConnexion%2526region%253DBODY%2526.activitymap%2526.a%2526.c%2526pid%253Dhttps%25253A%25252F%25252Flogin.prd.telenet.be%25252Fopenid%25252Flogin%2526oid%253DConnexion%2526oidt%253D3%2526ot%253DSUBMIT',
'dtSa': 'true%7CC%7C-1%7CConnexion%7C-%7C1693500060092%7C300048472_510%7Chttps%3A%2F%2Flogin.prd.telenet.be%2Fopenid%2Flogin%7C%7C%7C%7C',
'TNLANG': 'fr',
'TNUSERLOGIN': 'koen.roman@telenet.be',
'ZM_AUTH_TOKEN': '0_470421e76132cf3605969eec219874d288753cbd_69643d33363a30303030303030302d303030302d663030302d383030302d3030303030303038306130303b6578703d31333a313639333539323939373830373b76763d31303a313637383137353532303b747970653d363a7a696d6272613b753d313a613b7469643d31303a323032303030383033393b76657273696f6e3d31343a382e382e31355f47415f333832393b637372663d313a313b',
'JSESSIONID': 'node0q5vax8sijycreq6hde7v4j3135544.node0',
}
headers = {
'authority': 'mail.telenet.be',
'accept': '*/*',
'accept-language': 'fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7,ar;q=0.6,da;q=0.5',
'content-type': 'application/soap+xml; charset=UTF-8',
# 'cookie': 'dtCookie=v_4_srv_14_sn_6FE1BC8E9A33D17104B45ACAEA40306E_perc_100000_ol_0_mul_1_app-3Abd04f5bd154f7157_1; rxVisitor=1693500048477SFQ8STSKJ020TJB272DHGBRUR0QFPAAN; at_check=true; AMCVS_1EF86DCB632345E10A495F9E%40AdobeOrg=1; s_ecid=MCMID%7C50786250864729259581514810617929384934; AMCV_1EF86DCB632345E10A495F9E%40AdobeOrg=179643557%7CMCIDTS%7C19601%7CMCMID%7C50786250864729259581514810617929384934%7CMCAAMLH-1694104851%7C6%7CMCAAMB-1694104851%7CRKhpRz8krg2tLO6pguXWp5olkAcUniQYPHaMWWgdJ3xzPWQmdj0y%7CMCOPTOUT-1693507251s%7CNONE%7CMCAID%7CNONE%7CvVersion%7C5.5.0; mbox=session#246861e2b1aa470b86c9f1bb49b3e696#1693501912|PC#246861e2b1aa470b86c9f1bb49b3e696.37_0#1756744852; rxvt=1693501851956|1693500048480; dtPC=14$300048472_510h-vFRKBMVHCRMLWSKVKDUUHMPUFRUKKDALM-0e0; s_sq=upctelenetgroup%3D%2526c.%2526a.%2526activitymap.%2526page%253Dhttps%25253A%25252F%25252Flogin.prd.telenet.be%25252Fopenid%25252Flogin%2526link%253DConnexion%2526region%253DBODY%2526.activitymap%2526.a%2526.c%2526pid%253Dhttps%25253A%25252F%25252Flogin.prd.telenet.be%25252Fopenid%25252Flogin%2526oid%253DConnexion%2526oidt%253D3%2526ot%253DSUBMIT; dtSa=true%7CC%7C-1%7CConnexion%7C-%7C1693500060092%7C300048472_510%7Chttps%3A%2F%2Flogin.prd.telenet.be%2Fopenid%2Flogin%7C%7C%7C%7C; TNLANG=fr; TNUSERLOGIN=koen.roman@telenet.be; ZM_AUTH_TOKEN=0_470421e76132cf3605969eec219874d288753cbd_69643d33363a30303030303030302d303030302d663030302d383030302d3030303030303038306130303b6578703d31333a313639333539323939373830373b76763d31303a313637383137353532303b747970653d363a7a696d6272613b753d313a613b7469643d31303a323032303030383033393b76657273696f6e3d31343a382e382e31355f47415f333832393b637372663d313a313b; JSESSIONID=node0q5vax8sijycreq6hde7v4j3135544.node0',
'origin': 'https://mail.telenet.be',
'referer': 'https://mail.telenet.be/mail?client=advanced',
'sec-ch-ua': '"Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36',
'x-zimbra-csrf-token': '0_8f7ba90fe4bc3ff0c4c3478ba65b0756ee12b9b2',
}
data = '{"Header":{"context":{"_jsns":"urn:zimbra","userAgent":{"name":"ZimbraWebClient - GC116 (Win)","version":"8.8.15_GA_4562"},"session":{"_content":120466787,"id":120466787},"notify":{"seq":5},"account":{"_content":"koen.roman@telenet.be","by":"name"},"csrfToken":"0_8f7ba90fe4bc3ff0c4c3478ba65b0756ee12b9b2"}},"Body":{"SendMsgRequest":{"_jsns":"urn:zimbraMail","suid":1693577821304,"m":{"id":"579406","did":"579406","idnt":"00000000-0000-f000-8000-000000080a00","e":[{"t":"t","a":"dontchiki@gmail.com","p":"dontchiki"},{"t":"f","a":"koen.roman@telenet.be"},{"t":"r","a":"koen.roman@telenet.be"}],"su":{"_content":"FF"},"mp":[{"ct":"multipart/alternative","mp":[{"ct":"text/plain","content":{"_content":"SJSKL \\n\\nmvg, \\n\\n\\nKoen Roman \\n\\n0497 - 520.710 \\n"}},{"ct":"text/html","content":{"_content":"<html><body><div style=\\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000\\"><div>SJSKL</div><div><br></div><div data-marker=\\"__SIG_PRE__\\">mvg,<br><br><br>Koen Roman<br><br>0497 - 520.710<br></div></div></body></html>"}}]}]}}}}'
response = requests.post('https://mail.telenet.be/service/soap/SendMsgRequest', cookies=cookies, headers=headers, data=data)