0)) { $name_error = 'y' ; $error = 'y' ; } if (($subject == '') || (strpos($subject, 'http:') > 0)) { $subject_error = 'y' ; $error = 'y' ; } if ($suggestion == '') { $suggest_error = 'y' ; $error = 'y' ; } if ((strpos($email, 'uidaho.edu') == 0) || ($email == '')) { $email_error = 'y' ; $error = 'y' ; } } if (($error == 'y') || ($thanks == '')) { echo << Small Cube
Suggestion Form

Enter your name and e-mail address for a personal reply.
Name:
Email:
Subject:


INFORMATION; } else { require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = "smtpanon.uidaho.edu"; // specify main and backup server $mail->From = "$email"; $mail->FromName = "$name"; $mail->AddAddress($toemail, $toname); $mail->AddBCC($bccemail, $bccname) ; $mail->WordWrap = 50; // set word wrap to 50 characters $mail->IsHTML(false); // set email format to HTML $mail->Subject = "Virtual Cube suggestion"; $suggestion = stripslashes($suggestion) ; $mail->Body = " Name: $name Email: $email Subject: $vnumber Suggestion: " . $suggestion; if(!$mail->Send()) { echo "Message could not be sent.

"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } else { $thanks = '
Virtual Cube Thanks

Thanks for sending in the form. We will get to your email in the next 24 hours.
' ; echo $thanks ; } } print_footer_info ($file) ; ?>