|
我想做一个http://www.abanyou.cn/网站的自动注册机.以下是C#注册方法的代码.
UTF8Encoding utf8 = new UTF8Encoding();
Byte[] encodedBytes = utf8.GetBytes(name);//编码
name = System.Text.Encoding.UTF8.GetString(encodedBytes, 0, (int)encodedBytes.Length);
string registerURL = "http://www.abanyou.cn/index.php?c=passport&a=regpost";
string postData = string.Format("forward=&username={0}&password={1}&confirmpassword={2}&email={3}&qq={4}&checkcode={5}&gender={6}&ageyear=1979&agemonth=2&ageday=18&marrystatus=2&education=6&salary=2&height=157&provinceid=177&cityid=189&agree=true"
, name, pwd, pwd, email, qq, valide, sex);
string html = httpHelper.PostAndGetHtml(registerURL, postData, null, "http://www.abanyou.cn/index.php?c=passport&a=reg", false, Encoding.UTF8);
return html;
提交后显示
SMTP Error: Data not accepted.<p>SMTP server error: Error: content rejected.http://mail.qq.com/zh_CN/help/content/rejectedmail.html
</p>
SMTP Error: Data not accepted.<p>SMTP server error: Error: content rejected.http://mail.qq.com/zh_CN/help/content/rejectedmail.html
</p>
哪位兄弟能帮我解决一下.
|
|