korsygfhrfggfhfgfffgffg6655665dtggggggzangaiide
Elehhjhjjkjkfpf6df56fd65ffff
/
home2
/
sunpublicschools
/
public_html
/
Upload FileeE
HOME
<?php include 'SunShine_AdMin/config.php'; include 'PHPMailer-master/PHPMailerAutoload.php'; if(isset($_POST['submit'])) { $name= $_POST['name']; $email = $_POST['email']; $message = $_POST['descp']; $number = $_POST['mobile']; $quali = $_POST['quali']; $message1="SUNSHINE PUBLIC SCHOOLS , Career form details \r\n \r\n Name : ".$name." \r\n Email id : ".$email." \r\n Mobile. : ".$number." \r\n Applied For. : ".$aplied." \r\n Message : ".$message." "; $mail = new PHPMailer; $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->Port = 587; $mail->SMTPSecure = 'tls'; $mail->SMTPAuth = true; $mail->Username = "noreply.sirigroups@gmail.com"; $mail->Password = "123sirigroups@123"; $mail->setFrom("$email","$name"); $mail->addAddress("rbbgowda@gmail.com","SUNSHINE PUBLIC SCHOOLS"); $mail->addReplyTo("$email","$name"); $mail->Subject = "SUNSHINE PUBLIC SCHOOLS, Career form details"; //$mail->msgHTML($message1); $mail->Body = " ".$message1." " ; $file_to_attach =$_FILES["upfile"]["tmp_name"]; $filename=$_FILES["upfile"]["name"]; $mail->AddAttachment( $file_to_attach , $filename ); if (!$mail->send()) { $error = "Mailer Error: " . $mail->ErrorInfo; echo '<p id="para">'.$error.'</p>'; } else { ?> <script language="javascript" type="text/javascript"> alert('Thanks for the Interest...!'); window.location = 'contact.php'; </script> <?php } } ?>