APPLICATION FORM
if(!isset($_POST['fname'])) {
?>
|
|
}
else {
include('../phpmailer.php');
$to = 'babak83@gmail.com';
$target_path = "../attachments/";
$target_path = $target_path . basename( $_FILES['cv']['name']);
move_uploaded_file($_FILES['cv']['tmp_name'], $target_path);
$ext = end((explode(".", $_FILES['cv']['name'])));
$message = "AD /SOYAD: $_POST[fname]
EMAIL: $_POST[email]
KONU: $_POST[content]
";
$subject = 'WEB | IK Formu';
$email = new PHPMailer();
$email->From = 'info@akayplastik.com';
$email->FromName = 'Akay Plastik';
$email->Subject = $subject;
$email->Body = $message;
$email->AddAddress( 'bilgi@akayplastik.com' );
$email->AddAttachment( $target_path , trim($_POST[fname]).'.'.$ext );
$email->Send();
$subject = 'WEB | IK Formu';
$email = new PHPMailer();
$email->From = 'info@akayplastik.com';
$email->FromName = 'Akay Plastik';
$email->Subject = $subject;
$email->Body = $message;
$email->AddAddress( 'info@akayplastik.com' );
$email->AddAttachment( $target_path , trim($_POST[fname]).'.'.$ext );
$email->Send();
?>
We got your CV. We will contact you shortly.
}
?>
|