0) { die('Upload error or No files uploaded'); } $handle = fopen($tmp_name, "r"); $content = fread($handle, $size); fclose($handle); $encoded_content = chunk_split(base64_encode($content)); $boundary = md5("random"); $headers = "MIME-Version: 1.0\r\n"; $headers .= "From:".$from_email."\r\n"; $headers .= "Reply-To: ".$reply_to_email."\r\n"; $headers .= "Content-Type: multipart/mixed;"; $headers .= "boundary = $boundary\r\n"; //plain text $body = "--$boundary\r\n"; $body .= "Content-Type: text/plain; charset=ISO-8859-1\r\n"; $body .= "Content-Transfer-Encoding: base64\r\n\r\n"; $body .= chunk_split(base64_encode($message)); //attachment $body .= "--$boundary\r\n"; $body .="Content-Type: $type; name=".$name."\r\n"; $body .="Content-Disposition: attachment; filename=".$name."\r\n"; $body .="Content-Transfer-Encoding: base64\r\n"; $body .="X-Attachment-Id: ".rand(1000, 99999)."\r\n\r\n"; $body .= $encoded_content; $sentMailResult = mail($recipient_email, $subject, $body, $headers); if($sentMailResult ){ echo "
Mail us with your Resume before 10-5-2023.
Name: | |
---|---|
Whatsapp Number: | |
Email Address: | |
upload resume : | |
Send Message |