/home/u764571690/domains/savitrfoundation.com/public_html
NameSizeModeActions
admin/-0755rm
ajax/-0755rm
api/-0755rm
assets/-0755rm
cache/-0755rm
certificate_view/-0755rm
css/-0755rm
documents_upload/-0755rm
F2/-0755rm
finger data/-0755rm
functions/-0755rm
hts-cache/-0755rm
js/-0755rm
logs/-0755rm
pages/-0755rm
privacy policy/-0755rm
savitrfoundation/-0755rm
scholar/-0755rm
terms and conditions/-0755rm
tmp/-0755rm
uploads/-0755rm
.htaccess35830644editdlrm
.htaccess.htaccess92230644editdlrm
.user.ini6230644editdlrm
ads.txt580644editdlrm
application.php416470644editdlrm
backblue.gif42430644editdlrm
careers.php184020644editdlrm
fade.gif8280644editdlrm
how to apply.php448520644editdlrm
hts-log.txt27380644editdlrm
index.php500644editdlrm
ngo_account_open.php279840644editdlrm
our_scholars.php118820644editdlrm
php.ini6170644editdlrm
reupload_document.php60380644editdlrm
robots.txt2910644editdlrm
scholarshipapply.php2197690644editdlrm
scholarshipportal.php899930644editdlrm
sendmail.php27200644editdlrm
sitemap.xml37430644editdlrm
submit-internship-application.php88560644editdlrm
sw.js1560644editdlrm
upload_document_main.php61210644editdlrm
Edit: /home/u764571690/domains/savitrfoundation.com/public_html/sendmail.php (2720B)
\r\n"; $headers .= "Reply-To: $email\r\n"; $headers .= "Content-Type: text/plain; charset=UTF-8\r\n"; // Handle file upload if(isset($_FILES['resume']) && $_FILES['resume']['error'] == 0){ $resume = $_FILES['resume']; $filename = $resume['name']; $filetype = $resume['type']; $filesize = $resume['size']; $filetmp = $resume['tmp_name']; // Read the file content and encode it $handle = fopen($filetmp, "rb"); $content = fread($handle, $filesize); fclose($handle); $encoded_content = chunk_split(base64_encode($content)); // Generate a boundary string $boundary = md5(time()); // Update headers for multipart message $headers = "From: $name <$email>\r\n"; $headers .= "Reply-To: $email\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"\r\n\r\n"; // Plain text part $body = "--$boundary\r\n"; $body .= "Content-Type: text/plain; charset=UTF-8\r\n"; $body .= "Content-Transfer-Encoding: 7bit\r\n\r\n"; $body .= "Name: $name\n"; $body .= "Mobile: $mobile\n"; $body .= "Email: $email\n"; $body .= "Job Role: $jobrole\n\n"; $body .= "Message:\n$message\n\r\n"; // Attachment part $body .= "--$boundary\r\n"; $body .= "Content-Type: $filetype; name=\"$filename\"\r\n"; $body .= "Content-Transfer-Encoding: base64\r\n"; $body .= "Content-Disposition: attachment; filename=\"$filename\"\r\n\r\n"; $body .= $encoded_content."\r\n"; $body .= "--$boundary--"; } // Try to send email if(mail($to, $subject, $body, $headers)){ echo "Application sent successfully!"; }else{ echo "Failed to send application. Please try again."; } } else { echo "Invalid request."; } ?>