From owner-freebsd-questions@FreeBSD.ORG Wed Aug 27 23:02:40 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B97216A4BF for ; Wed, 27 Aug 2003 23:02:40 -0700 (PDT) Received: from mail.x9media.com (mail.x9media.com [62.75.136.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id E936543FDF for ; Wed, 27 Aug 2003 23:02:38 -0700 (PDT) (envelope-from thomas.may@x9media.com) X-AuthUser: thomas.may@x9media.com Received: from notebook (217.82.16.129:36093) by smtp.x9media.com with [XMail 1.16 (FreeBSD/Ix86) ESMTP Server] ; Thu, 28 Aug 2003 08:08:13 +0200 From: "thomas may" To: Date: Thu, 28 Aug 2003 08:01:58 +0200 Message-ID: <000001c36d29$e6dfcfe0$8b01a8c0@notebook> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: php mail() function with freebsd 4.8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 06:02:40 -0000 Hi, is there someone who has experience with the php Mail() Funktion under FreeBSD 4.8. I have simply installed the mod_php from the ports directory. I use as smtp-gateway/mailserver www.xmailserver.org on Port 25. it will work with the command mail and sendmail on console without problems. the following changes i have made in php.ini: [mail function] ; For Win32 only. ;SMTP = localhost ; For Win32 only. ;sendmail_from = me@localhost.com ; for unix only sendmail_path = "/usr/local/sbin/sendmail -t -i &" My PHP Script looks as follow: thomas.may@x9media.com"; $subject = "Testmail"; $header .= "Content-Type: application/x-gm-impdata\n"; $header .= "From: thomas.may@x9media.com\r\n"; // send the email mail($mailto, $subject, $message, $header); ?> If i use for example IE60 Browser i got only an empty site without sending the mail. Iam not really sure if it is a php, port or a freebsd problem. Maybe i must change some compile options ? Can someone please help me. THANX thomas