D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
epksuofuukz9
/
public_html
/
Filename :
career-send.php
back
Copy
<?php if(isset($_POST['submit'])) { $fname=$_POST['fname']; $lname=$_POST['lname']; $email=$_POST['email']; $phone=$_POST['phone']; $coursename=$_POST['coursename']; $experience=$_POST['experience']; $career_id=$_POST['career_id']; $yourself=$_POST['yourself']; $to = 'career@bismilsoft.com'; $subject = 'Website Enquiry Form'; $req='Career'; $message =' <html> <head> <title>Website Career Form</title> </head> <body> <p style="font-family:Arial, Helvetica, sans-serif; color:#FF0000; font-size:16px; font-weight:600;">BismilSoft Pvt. Ltd. </p> <p style="font-family:Arial, Helvetica, sans-serif; color:#FF0000; font-size:16px; font-weight:600;">Career Form </p> <table width="500" border="1" style="border:1px solid #CCCCCC;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px; border-collapse:collapse;" > <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> First name</td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$fname.'</td> </tr> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> Last name</td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$lname.'</td> </tr> <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> Email address </td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$email.'</td> </tr> <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> Phone Number </td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$phone.'</td> </tr> <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> Experience</td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$experience.'</td> </tr> <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> Course Name </td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$coursename.'</td> </tr> <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123">Message</td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$yourself.'</td> </tr> </table> </body> </html>'; $semi_rand = md5(uniqid(time())); $headers = "From: ".$to; $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; if($_FILES["attachment"]["name"]!= ""){ $strFilesName = $_FILES["attachment"]["name"]; $strContent = chunk_split(base64_encode(file_get_contents($_FILES["attachment"]["tmp_name"]))); $message .= "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type:text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message .= "\n\n"; $message .= "--{$mime_boundary}\n" . "Content-Type: application/octet-stream;\n" . " name=\"{$strFilesName}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $strContent .= "\n\n" . "--{$mime_boundary}--\n"; } $output=mail($to, $subject, $message, $headers); if($output) { echo "<script>window.alert('Thank you for filling out your information!');</script>"; echo"<script> window.history.back(); </script>"; } else { echo "<script>window.alert('Error');</script>"; } } ?>