php mail() not working

4 posts / 0 new
Last post
#1 Sat, 12/07/2013 - 06:24
liamdawe

php mail() not working

I had my virtualmin install migrated over to a new host and now the php mail() doesn't work.

When trying to send a mail it gives me this: Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in

What could be the problem?

Sat, 12/07/2013 - 09:34
andreychek

Howdy,

Hmm, I haven't run into an issue like that before.

Let's start here -- does /usr/sbin/sendmail exist, and is it executable?

You can determine that by running this command:

ls -l /usr/sbin/sendmail

Sat, 12/07/2013 - 10:54
liamdawe

I ran that command and it gave me this:

lrwxrwxrwx 1 root root 21 Nov 21 21:27 /usr/sbin/sendmail -> /etc/alternatives/mta

Sat, 12/07/2013 - 23:28
andreychek

What output do you receive if you run this command:

sendmail -h

Topic locked