WORK AT STAR

join our global team and make a difference

The Star Group hires brilliant, inspiring leaders who solve branding, retail and e-commerce packaging challenges.
Interested?
*Required Fields
Choose File
Must be a .doc, .docx, .pdf, .rtf, or .txt file no larger than 1MB
images

Thank you for contacting us. We will be in contact with you soon.

Something is wrong.

image
";print_r($_POST); $to = 'work@thestargrp.com'; //sender email $subject = 'StarGroup WORK AT STAR '; //subject of email $message = ""; $message .= "
This is StarGroup WORK AT STAR Email
Contact Details
Full Name:".$name."
Email-Address:".$email."
Phone: ".$phone."
Address:".$address."
City: ".$city."
State: ".$state."
Country:".$country."
Zipcode:".$zipcode."
Message:".$comments."
"; $message .= ""; $user_email = $_POST["email"]; $file_tmp_name = $_FILES['my_file']['tmp_name']; $file_name = $_FILES['my_file']['name']; $file_size = $_FILES['my_file']['size']; $file_type = $_FILES['my_file']['type']; $file_error = $_FILES['my_file']['error']; if($file_error>0) { die('upload error'); } $handle = fopen($file_tmp_name, "r"); $content = fread($handle, $file_size); fclose($handle); $encoded_content = chunk_split(base64_encode($content)); $boundary = md5("sanwebe"); $headers = "MIME-Version: 1.0\r\n"; $headers .= "From:".$user_email."\r\n"; $headers .= "Reply-To: ".$user_email."" . "\r\n"; $headers .= "Content-Type: multipart/mixed; boundary = $boundary\r\n\r\n"; //$headers .= 'From: '.$user_email."\r\n". /*'Reply-To: '.$user_email."\r\n" . 'X-Mailer: PHP/' .phpversion();*/ $body = "--$boundary\r\n"; $body .= 'Content-type: text/html; 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: $file_type; name=\"$file_name\"\r\n"; $body .="Content-Disposition: attachment; filename=\"$file_name\"\r\n"; $body .="Content-Transfer-Encoding: base64\r\n"; $body .="X-Attachment-Id: ".rand(1000,99999)."\r\n\r\n"; $body .= $encoded_content; $sentMail = mail($to, $subject, $body, $headers); /* $to = "info@thestargrp.com"; $subject = 'StarGroup ContactUs Form'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$email."\r\n". 'Reply-To: '.$email."\r\n" . 'X-Mailer: PHP/' .phpversion(); $send = mail($to,$subject,$message,$headers); */ if($sentMail) { echo ""; } else { echo ""; } } //$receive= mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender } ?>