First Name: '.$firstname.'
Last Name: '.$lastname.'
Phone: '.$phone.'
Email: '.$emailID.'
Comments: '.$comments.'
'; $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "From: <$emailID>\n"; //$recipient = "jim@coljim.com"; $recipient = "jim@coljim.com"; $recipient2 = "jeff@outwardimage.net"; $subject="Message from Parts-A-Plenty Contact Form —" . " $firstname" . " $lastname"; $header = "From:".$emailID."\r\n"; $header .= "MIME-Version: 1.0\r\n"; //$header .= "Mailer: Olaf's mail script version 1.11\r\n"; $header .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n"; //$header .= "Cc: paulchri@sbcglobal.net \r\n"; $header .= "Content-Transfer-Encoding: 7bit\r\n"; //$header .= "X-priority: 1"; //$mail = mail($recipient,$subject,$message,$header); $mail = new htmlMimeMail(); $attachment = $mail->getFile($tmpName); $mail->setFrom($emailID); $mail->setSubject($subject); if($tmpName != '') { $mail->addAttachment($attachment,$UploadFile); } $mail->setHtml($message); //$mail->setCc($cc); $result = $mail->send(array($recipient, $recipient2)); if($mail) { header("Location: http://parts-a-plenty.ca/thanks.html"); } else { header("Location:index.html"); } ?>