I'm trying to get sendmail to work with php but i can't even seem to get it to work on it's own. I'm logged in as root (su root). I have in php.ini:
commented out smpt and smtp port (win 32 only it says) and sendmail_from commented out
For unix only
sendmail_path=/usr/lib/sendmail
sendmail seems to be installed i can run it from bash. I try sending an email using:
sendmail example@whatever.com
message
ctrl + D
which i saw somewhere however the email doesn't seem to go through. I've also tried (after restarting apache server) to use mail() php function and that also doesn't work. Any ideas?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
sendmail and php
Re: sendmail and php
Did you miss -t -i options?wolfric wrote:sendmail_path=/usr/lib/sendmail
Code: Select all
sendmail_path = /usr/lib/sendmail -t -i
Code: Select all
$ whereis sendmail
sendmail: /usr/sbin/sendmail /usr/lib/sendmail /usr/share/man/man8/sendmail.8.gz
Code: Select all
$ ls -l /usr/sbin/sendmail
lrwxrwxrwx 1 root root 5 2009-04-07 15:53 /usr/sbin/sendmail -> exim4
Re: sendmail and php
Are you sending to an external recipient?
It could be that your ISP is blocking SMTP traffic. If so you must configure the mailer daemon to use a relay server.
It could be that your ISP is blocking SMTP traffic. If so you must configure the mailer daemon to use a relay server.