|
发表于 2017-10-17 13:24:04
|
显示全部楼层
方法你都知道了,打开浏览器写邮件,按F12抓包比对一下参数不就可以了吗?!
自己都不知道问题在哪里,这种真不知道应该怎么回复你,
只能自己去写个直接能用的给你:
import console;
import web.multipartFormData;
import inet.http;
import string.html;
var formData = web.multipartFormData();
formData.add("TO_ID","912");
formData.add("TO_NAME","王征");
formData.add("SUBJECT","测试邮件标题");
formData.add("SEND_FLAG","1");
formData.add("SMS_REMIND","on");
formData.add("FROM_WEBMAIL","abc@263.net");
formData.add("TD_HTML_EDITOR_CONTENTE","<p>nlnl</p>")
var header = {
["Referer:"] = "https://oa.tongda2000.com/general/email/new/";
["Content-Type:"] = formData.contentType();
};
var http = inet.http();
http.post("https://oa.tongda2000.com/logincheck.php","UNAME=lijia&PASSWORD&encode_type=1");
var html = http.post("https://oa.tongda2000.com/general/email/new/submit.php",formData.readAll(),header);
console.log( string.html.toText(html) );
console.pause(true);
|
|