[PHP-users 7494] メールの送信ができません

Nobuaki Ishii php-users@php.gr.jp
Thu, 16 May 2002 12:57:03 +0900


こんにちわ
石井と申します。

php-4.1.2+postgresql-7.2+apache1.3.23+RedHat7.1(kernel 2.4.9-21)+qmail
(php.iniの設定はsendmail_path = /var/qmail/bin/qmail-inject
include_path = ".:/usr/local/lib/php/:/usr/local/xxx
default_mimetype = "text/html"
default_charset = "Shift_JIS"
mbstring.internal_encoding = EUC-JP 
mbstring.http_input = Shift_JIS 
mbstring.http_output = Shift_JIS 
mbstring.detect_order = auto
mbstring.substitute_character = auto 
magic_quotes_gpc = Off)

configureは
'./configure' '--with-pgsql' '--enable-track-vars' '--with-apxs=/usr/local/apache/bin/apxs'
'--enable-mbregex' '--with-pdflib=/usr' '--with-zlib=/usr'
'--with-tiff-dir=/usr/lib' '--with-jpeg-dir=/usr/lib'
'--with-png-dir=/usr/lib' '--enable-versioning' '--enable-trans-sid'
'--with-mysql=no' '--with-gd=/usr' '--enable-zend-multibyte'
'--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mailparse'

でmailが送れません。
ソースは
<?
$subject = "送信テスト";
$message = "メール送信テストです。";
$email = "ishii@dali-lover.co.jp";
$header = "From: ".$email." \n";
$header .= "Return-Path: <".$email.">\n";
$header .= "X-Mailer: PHP/".phpversion();
mb_send_mail("ishii@dali-lover.co.jp",$subject,$message,$header);
print ("終了");
?>
をtest.phpで保存しています。
mb_send_mail()のままでは処理は終了しているようですが、メールは配信されま
せん。

これをmail()にすると
Warning: mail() is not supported in this PHP build in /xxx/test.php on
line 8
こう怒られます。

'--enable-mailparse'をつけているのですが、原因がまったくつかめずちょっと
お手上げです。

よろしくお願いします。