Simple2012

Untitled

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