1、linux下curl:
curl http://192.168.1.193:8000/send/email -X POST --header '{'content-type': 'application/json'}' --data '{"data": [{"subject": "testsubject"}, {"context": "testcontext"}, {"tomail": "xxx@qq.com"}]}'
2、Python:
1、linux下curl:
curl http://192.168.1.193:8000/send/email -X POST --header '{'content-type': 'application/json'}' --data '{"data": [{"subject": "testsubject"}, {"context": "testcontext"}, {"tomail": "xxx@qq.com"}]}'
2、Python: