linux - mail() in PHP on localhost (fedora 22) not sending emails -
i have problem sending emails in php,i have lampp installed.
on linux have postfix, when send terminal works fine. example: works , sends email:
/usr/sbin/sendmail -f -t myaddress@gmail.com < message_body.txt
in php.ini
[mail function] ; win32 only. ; http://php.net/smtp smtp=localhost ; http://php.net/smtp-port smtp_port=25 ; win32 only. ; http://php.net/send-from ;sendmail_from = me@example.com ; unix only. may supply arguments (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path ="/usr/sbin/sendmail -f -t "
this mail script...
$send = mail("me@gmail.com", "my subject", $msg); if($send) { echo "ok"; } else{ echo "failed send"; }
this error log /opt/lamp/logs says when try send
/usr/sbin/sendmail: /opt/lampp/lib/libstdc++.so.6: version `cxxabi_1.3.8' not found (required /lib64/libicuuc.so.54) /usr/sbin/sendmail: /opt/lampp/lib/libstdc++.so.6: version `cxxabi_1.3.8' not found (required /lib64/libicuuc.so.54) /usr/sbin/sendmail: /opt/lampp/lib/libstdc++.so.6: version `cxxabi_1.3.8' not found (required /lib64/libicuuc.so.54) /usr/sbin/sendmail: /opt/lampp/lib/libstdc++.so.6: version `cxxabi_1.3.8' not found (required /lib64/libicuuc.so.54) /usr/sbin/sendmail: /opt/lampp/lib/libstdc++.so.6: version `cxxabi_1.3.8' not found (required /lib64/libicuuc.so.54) /usr/sbin/sendmail: /opt/lampp/lib/libstdc++.so.6: version `cxxabi_1.3.8' not found (required /lib64/libicuuc.so.54)
thank advise
Comments
Post a Comment