\r\n"; $headers .= "Reply-To: ".$replyto."\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"".$uid."\"\r\n\r\n"; $headers .= "This is a multi-part message in MIME format.\r\n"; $headers .= "--".$uid."\r\n"; $headers .= "Content-type:text/plain; charset=iso-8859-1\r\n"; $headers .= "Content-Transfer-Encoding: 7bit\r\n\r\n"; $headers .= $message."\r\n\r\n"; $headers .= "--".$uid."\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; $message="
Hi IPWT Admin.
\r\n"; $message.="".$contactname." has contacted you please fine the info below.
\r\n"; $message.="Name: ".$contactname."
"; $message.="Email: ".$contactemail."
"; $message.="Message: ".$contactmsg."
"; $message.="Thanks!
"; $message.="".$contactname."
"; $subject= "IPWT� - Contact!"; $subject="=?UTF-8?B?".base64_encode($subject)."?="; mail($admin_mail, $subject, $message, $headers); /* ******************** ***************************** ************************* */ $from_name = "IPWT �"; $from_mail = 'helloipwt@gmail.com'; $user_mail = $contactemail; $replyto = 'helloipwt@gmail.com'; $to = ''; $subject = ''; $message = ''; $headers = "From: ".$from_name." <".$from_mail.">\r\n"; $headers .= "Reply-To: ".$replyto."\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"".$uid."\"\r\n\r\n"; $headers .= "This is a multi-part message in MIME format.\r\n"; $headers .= "--".$uid."\r\n"; $headers .= "Content-type:text/plain; charset=iso-8859-1\r\n"; $headers .= "Content-Transfer-Encoding: 7bit\r\n\r\n"; $headers .= $message."\r\n\r\n"; $headers .= "--".$uid."\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; $message="Dear ".$contactname.",
"; $message.="We review and reply each and every communication directed to us indiscriminately hence, sometimes, it might take us a little longer than expected to reply. Please bear with us. Our representative will contact you within 2 working days."; $message.="
Thank you for choosing IPWT for your needs.
"; $message.="Best regards,
"; $message.="IPWT® Team
"; $message.=" "; $subject= "IPWT� - Thanks for contacting us!"; $subject="=?UTF-8?B?".base64_encode($subject)."?="; mail($user_mail, $subject, $message, $headers); header("location: index.html"); //replaces 1.html ob_end_flush(); //now the headers are sent ?>