Re: php mail() issues



On Tue, 30 May 2006 11:46:33 -0700, Michael Vilain wrote:

In article <aecj6usyekm4$.1n1hbbad971wh.dlg@xxxxxxxxxx>,
Chris <ngfb@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Apologies if this has been covered before - please slap me and point me in
the right direction if so - I've limited experience of PHP so possibly
missed something obvious

System is a Fedora core 5 system with Apache, PHP 5.1.4 and sendmail 8.13,
more or less a clean install. Sendmail has been configured to point to my
ISP provider, masqerade mail and send via them. This works fine, mail comes
through with the correct headers if I invoke mail from the linux command
prompt.

Cannot get mailing functions from Wordpress 2.2 working. Looking through
the code, I see it uses mail()

Trying a real simple example like this...

<? phpinfo();
mail('mail@xxxxxxxxxxxxx','test','message'); ?>

also fails to work - the php info page is put up as expected but no bounced
mail, no mail comething through, nothing. Is this the correct way of doing
things - should mail be coming through with the code above? php.ini appears
to be set up correctly to point to seendmail - has the right path, has r-x
permission on the binary etc.

Thanks in advace.

Chris.

What's the setting for "sendmail_path" in your php.ini file?

/usr/sbin/sendmail -t -i

You can see the entire output here if that helps any more.

http://80.176.79.35/phpinfo.php

Thanks.
.



Relevant Pages

  • Re: send email to me
    ... to do this i have no idea because i am new to PHP. ... sendmail binary on your system during compile time. ... about compiling php...much less including third-party add-ons in the ... how you treat your wife and kids is up to you and of little concern to ...
    (comp.lang.php)
  • Re: SuSE 9.1 - mail() function disabled in PHP ??
    ... I checked the sendmail setting, grepped for disable, all that jazz, ... SuSE 9.1 Professional RPMs, because they save me a lot of time not ... having to compile everything. ... /usr/local/apache2 and defaults for PHP simply because I couldn't ...
    (comp.lang.php)
  • Re: mail function and sendmail
    ... In reply to message from Jerry Stuckle dated Wednesday, July 9, 2008, 16:25:01, ... Does this mean that the sendmail binary is NOT needed on windows? ... "For the Mail functions to be available, PHP must have access to the ... ; For Win32 only. ...
    (comp.lang.php)
  • Re: [PHP] SMTP vs mail()
    ... is faster - SMTP with multiple RCPT commands or the PHP mail() ... SMTP will almost certainly be faster. ... configured sendmail, but it's never going to be faster than a socket ...
    (php.general)
  • Re: mail function and sendmail
    ... Does this mean that the sendmail binary is NOT needed on windows? ... "For the Mail functions to be available, PHP must have access to the ... SMTP server and it is adwised to do it that way in php.ini. ... ; For Win32 only. ...
    (comp.lang.php)