Date: Thu, 28 Aug 2003 08:01:58 +0200 From: "thomas may" <thomas.may@x9media.com> To: <freebsd-questions@FreeBSD.ORG> Subject: php mail() function with freebsd 4.8 Message-ID: <000001c36d29$e6dfcfe0$8b01a8c0@notebook>
next in thread | raw e-mail | index | archive | help
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 <http://www.xmailserver.org> 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 = <mailto:me@localhost.com> me@localhost.com ; for unix only sendmail_path = "/usr/local/sbin/sendmail -t -i &" My PHP Script looks as follow: <?php $mailto = " <mailto:thomas.may@x9media.com> thomas.may@x9media.com"; $subject = "Testmail"; $header .= "Content-Type: application/x-gm-impdata\n"; $header .= "From: <mailto:thomas.may@x9media.com\r\n> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001c36d29$e6dfcfe0$8b01a8c0>