You are not logged in.

#1 2008-04-25 17:43:25

tony5429
Member
Registered: 2006-03-28
Posts: 861
Website

PHP Sendmail [SOLVED]

I am trying to use a PHP script to send mail with the PHP mail() function. Looking at phpinfo(), I see "/usr/sbin/sendmail -t -i" for the local and master values of sendmail_path. However, if I manually issue "/usr/sbin/sendmail -t -i" as root, I receive the error "-bash: /usr/sbin/sendmail: No such file or directory". Do I need to install sendmail? I cannot find a package for it on Arch... Does anyone know what I am doing wrong?

Last edited by tony5429 (2008-04-25 18:41:03)


Yellowcot: A free, lightweight, open-source, cross-platform, Qt-based multimedia flash card simulator.

Offline

#2 2008-04-25 18:33:35

dschrute
Member
From: NJ, USA
Registered: 2007-04-09
Posts: 183

Re: PHP Sendmail [SOLVED]

Try postfix, courier-mta or ssmtp.  All of them have a sendmail binary.  If you don't need a full-blown mta, ssmtp may be the best bet, but any will do.

Offline

#3 2008-04-25 18:40:51

tony5429
Member
Registered: 2006-03-28
Posts: 861
Website

Re: PHP Sendmail [SOLVED]

Just switched to postfix and it works perfectly for me. Thanks!


Yellowcot: A free, lightweight, open-source, cross-platform, Qt-based multimedia flash card simulator.

Offline

Board footer

Powered by FluxBB