A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Something wrong here?

958 views · started by Bman ·
#1
Something wrong here?
public void SendMessage(String username, String Subject, String Message)
{
Html = Wrapper.get("http://www.gaiaonline.com/profile/privmsg.php?mode=post");
Html = Wrapper.post("http://www.gaiaonline.com/profile/privmsg.php", "username=" + username + "&subject=" + Subject + "&message=" + Message + "&area_code=&pn1=&pn2=&selected_options=post&btn_send=true&preview=&post=&mode=post&src=&folder=inbox&id=");
if (Html.Contains("Your Private Message has been sent"))
{
MessageBox.Show("Your message has been sent to : " + username);
}
else
{
MessageBox.Show("Message sending failed");
}
}


Okay, look at that code. All day I have been trying to figure out why my messages wont send, or why daily chance wont work. Or why anything wont work for that matter.

The only thing that works is the login. After that nothing works >.>

Im really hoping a fellow programmer on the team can help me, im posting because most neglect to help me.

Im using chris' wrapper.

It also wont let me use the data on my browser, when I try all it does is refresh the page...
#2
&selected_options=post&btn_send

Put on end of post data remove from middle of post data.
#3
I need you to get on msn, that wont work either. And when I view the html source, it just shows the login page...

So i guess its logging me out, but I dont clear the cookies.
Something isnt right :\

Edit : I also tried that, didnt work.
#4
 public static bool Send_Private_Message(String Username, String Subject, String Message)
{
if (Wrapper.Post(Gaia_URL_Nor + Gaia_URL_NorPrivateMessages + "?mode=post", "username=" + Username + "&subject=" + Subject + "&message=" + Message + "&folder=inbox&selected_options=post&btn_send=true=&mode=post", "http://www.gaiaonline.com/").IndexOf("Your Private Message has been sent to:") > -1)
{
return true;
}
return false;
}


Straight out of the teams Gaiaonline.cs Module.

Boolean value = Gaiaonline.Send_Private_Message(To, Subject, Message);

if (value == true)
Console.WriteLine(Accounts[i] + " : Sent message to " + To);
else
Console.WriteLine(Accounts[i] + " : Failed to send message.")
[/i][/i]


How to use.
#5
Oop. I got it.

Thanks for the help chad.

Ill + rep you tomorrow. going to sleep soon.