Php ile mail resim ve diğer HTML kodu içerikli mail gönderiminizde sorunlar yaşıyorsanız birde aşağıdaki kodu deneyin.
$message ="İstediğini yaz buraya da mesela html kodlarını"; //Mesajınız
$rmail = trim( $rmail); $smail = trim( $smail); $subject = trim(stripslashes( $subject)); $message = preg_replace( "/(
|
|
)/s", "
", trim(stripslashes( $message))); $head = "MIME-Version: 1.0
"; $head .= "Content-type: text/html; charset=iso-1254
"; $head .= "Content-Transfer-Encoding: 8bit
"; $head .= "From: ". $sname. " <". $smail. ">
"; $head .= "Reply-To: ". $smail. "
"; $head .= "Return-Path: ". $smail. "
"; $head .= "X-Priority: 3
"; $head .= "X-Originating-IP: {$_SERVER['REMOTE_ADDR']}
"; $head .= "X-Originating-Email: ". $smail. "
"; $head .= "Organization: ". $sname. "
"; $head .= "Message-ID: <".md5(uniqid(time()))."@{$_SERVER['SERVER_NAME']}>
"; $head .= "X-Mailer: Microsoft Office Outlook, Build 11.0.5510
"; $head .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
"; $head .= "X-Sender: ". $smail. "
"; $head .= "Importance: High
"; $head .= "X-Mgonderen_mail-Priority: High
"; $head .= "X-AntiAbuse: This is a solicited email.
"; $head .= "X-AntiAbuse: Servername - {$_SERVER['SERVER_NAME']}
"; $head .= "X-AntiAbuse: User - ". $smail. "
"; $head .= "Date: ".date("r"). "
"; $mail_at=@mail($rmail, $subject, $message, $head);
?>
|
|