Skip to content

Commit

Permalink
Contact page finalized
Browse files Browse the repository at this point in the history
  • Loading branch information
ashiqueud committed Oct 17, 2016
1 parent de6ef8f commit 9843301
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ function isValid()
if (isValid()==false){ echo "<p><b>You need to click to prove that you are not robot! </p>"; }

else if((!empty($_POST['userName']))&&(!empty($_POST['userMessage']))&&(!empty($_POST['userSubject']))){
$to_email = 'schmidtc@udel.edu'; //'ashique@udel.edu';
$to_email = 'schmidtc@udel.edu';
$subject = test_input($_POST['userSubject']);
$subject = '[WebGIVI contact] '.$subject.'--'.test_input($_POST['userName']);
$message = test_input($_POST['userMessage']);
$userEmail = test_input($_POST['userEmail']);
if (!empty($userEmail)){
$headers = 'From:'.$userEmail."\r\n".'Reply-To:'.$userEmail."\r\n".'X-Mailer: PHP/' . phpversion();
//mail($to_email, $subject, $message,$headers);
mail($to_email, $subject, $message,$headers);
}

else{
$to_email = $to_email; // dummy line because the next line is commented out. -- ASHIQUE
//mail($to_email, $subject, $message);
mail($to_email, $subject, $message);
}
echo "<p><b>Thanks for your question, we will contact you as soon as possible!</b></p>";
}
Expand Down

0 comments on commit 9843301

Please sign in to comment.