Straight out of the teams Gaiaonline.cs Module.PHP Code:
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;
}
How to use.PHP Code:
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.")
Results 1 to 5 of 5
Thread: Something wrong here?
Threaded View
- 31 Jul. 2010 11:28pm #4