Simple2012

Untitled

Mar 29th, 2014
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. <php
  2.   $subject = 'SKS-feedback: ' . $_POST['subject'];
  3.   $body = 'Email: '.$_POST['email'].'\r\n' . 'IP: '.$_SERVER['REMOTE_ADDR'].'\r\n'.'Description: \r\n' . wordwrap($_POST['description'], 70, '\r\n');
  4.   if(mail('[email protected]', $subject , $body)) {
  5.  
  6.       echo "Chocolate";
  7.       $errors = createErrors($erc);
  8.       header("location: " . $_POST['feedback'] . '?feedback=1' . $errors);
  9.       exit();
  10.   }
  11.   else {
  12.     phpinfo();
  13.     exit("Something went wrong we could not send the mail to our administrator right now!");
  14.   }
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment