用什么方法可以把MSN机器人的内容转发给对方?
跪求
比如
String[] t = input.Split(' ');
input = input.Substring(1, t.Length);//用户名
DataSet useridds = con.select("select userid from im_account where MSN='"+email+"'");//发送人的ID
DataSet userds=con.select("select msn from im_account a inner join (select Friendid from IM_Friend where userid='"+useridds+"' and nickname in("+input+")) b on a.userid=b.friendid");//获取收信人ID
DataSet msnds=con.select("select msn from im_account where userid='"+userds+"'");//获取收信人的MSN
DataSet emailds=con.select("select * from IM_Account where Email='"+email+"'");
if (emailds.Tables[0].Rows.Count > 0)
{
if (art == "@")
{
if (userds.Tables[0].Rows.Count > 0)
{
//sender.SendMessage(content);
//con.update("insert into IM_Message(msgid,account,accounttype,message,messagetype,svtime) values(con.getRndString()'" + content + "',MSN,'" + dt + "') ");
}
else
{
con.update("insert into IM_Message(msgid,account,accounttype,message,messagetype,svtime) values(con.getRndString()'" + content + "',MSN,'" + dt + "') ");
}
}
else
{
con.update("insert into IM_Message(msgid,account,accounttype,message,messagetype,svtime) values(con.getRndString()'" + content + "',MSN,'" + dt + "') ");
}
}
else
{
AddLog("请到http://www.qfou.com 注册。Q否 Q生活,Q朋友!今天你Q了吗?");
}
string paras = "";
if (input.ToUpper().StartsWith("IP"))
{
paras = input.Substring(input.ToUpper().IndexOf("IP") + 2);
if (paras != null && paras != "")
paras = Regex.Replace(paras, "\r\n", "");
paras = Regex.Replace(paras, "\r", "");
paras = paras.Trim();
ip.IP = paras;
paras = ip.IPLocation();
sender.SendMessage(paras);
}
怎么样可以在
if (art == "@")
{
if (userds.Tables[0].Rows.Count > 0)
{
//sender.SendMessage(content);
//con.update("insert into IM_Message(msgid,account,accounttype,message,messagetype,svtime) values(con.getRndString()'" + content + "',MSN,'" + dt + "') ");
}
else
{
con.update("insert into IM_Message(msgid,account,accounttype,message,messagetype,svtime) values(con.getRndString()'" + content + "',MSN,'" + dt + "') ");
内把信息发送到以提取出的MSN的邮箱里