Jump to content

mailman022

Members
  • Posts

    4
  • Joined

  • Last visited

mailman022's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. How could I be so stupid and miss that, thanks!
  2. Thanks for the code, I used that but still no e-mail gets sent like before. I think the error is in mail.php. When I go to mail.php page then: Parse error: syntax error, unexpected T_VARIABLE in /home/a8672447/public_html/mail.php on line 4 Error is on line 4? This is code: <?php $to = $_GET["to"]; $subject = $_GET["subject"] $body = $_GET["message"] if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?>
  3. I'm kind of new to this, I tried: <?php $to = $_GET["to"]; $subject = $_GET["subject"] $body = $_GET["message"] if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> and: try { WebClient client = new WebClient(); client.DownloadString("http://xxxx.nxxne.net/mail.php?" + "&to={xxxx@gmail.com}" + "&subject={Yxe}" + "&message={Test220}"); client.Dispose(); } catch (Exception) { MessageBox.Show("An error occured loading the scripts, restart the hack again!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); } But doesent work..
  4. Got this script on my webpage "www.******.com/mail.php". This is the script: <?php $to = "xxxxxx@gmail.com"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> And when I visit the page, an e-mail gets sent there. But I have a C# program and I want to change &to, &subject and &body in the PHP script. I have this at the moment: private void button2_Click(object sender, EventArgs e) { try { WebClient client = new WebClient(); client.DownloadString("http://xxxxxx/mail.php?to=" + "&to={xxxxxx@gmail.com}" + "&subject={Test}" + "&body={Test}"); client.Dispose(); } catch (Exception) { MessageBox.Show("An error occured loading the scripts, restart it again!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); } } You see, I try to change &to={xxxxxx@gmail.com} and the others, but still the original message gets sent! The point of this code is, that the C# script will send an e-mail through mail.php. Please help, I would appreciate your time.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.