You are not logged in.

#1 2008-07-23 23:15:15

RAH
Member
Registered: 2008-06-20
Posts: 205

PHP Mail Not Working

Hello,

I recently setup a new LAMP server and moved a forum to it.  However PHP Mail doesn't seem to be working, at least not with vBulletin.  Any ideas?

Thanks.

Offline

#2 2008-07-24 16:46:03

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: PHP Mail Not Working

Well, do you have a mail server running on that server? And is it properly configured? As far as I know PHP has never had any built in mail server.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#3 2008-07-24 18:11:55

KRTac
Member
From: Croatia
Registered: 2008-07-01
Posts: 99

Re: PHP Mail Not Working

RAH: You meen that the php mail() function doesent work? If so, that's because php uses sendmail as the program to send mail.

PHP Documentation wrote:

For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them. ...

But in arch there is no sendmail. Its old and not so secure. So the solution is to use postfix as a wrapper for sendmail. I dont know how to setup postfix for that purpose, but I'll try to get it working and post a how to or something. I also need the mail function in php.

Offline

#4 2008-07-24 18:31:19

briest
Member
From: Katowice, PL
Registered: 2006-05-04
Posts: 468

Re: PHP Mail Not Working

"sendmail binary" is just /usr/sbin/sendmail here; it does not have to be sendmail from sendmail.org itself, just standard sendmail-compatible interface that can be - and usually is - provided by other MTA. Including postfix, with no additional setup needed.

Offline

Board footer

Powered by FluxBB