Re: Email - Php !
| From: | Chris Hewitt | Date: | Thu, 13 Jun 2002 09:04:22 +0000 |
| Subject: | Re: Email - Php ! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101921@lists.php.net to get a copy of this message | ||
If you can send mail to/from the server as an ordinary user, the the sendmail configuration is OK, but if this is a new linux installation (e.g. RH 7.2 or 7.3) then it might need updating. The firewall may also prevent smtp.
HTH
Chris
Septic Flesh wrote:
I use the following php.ini config.
Do I need to configure the sendmail seperatly to successfully send an email
? with Linux ?
In my win32 os email works ok..but in the linux box nothing is sent..
~~~~~~~~~~~~~~~~~~php.ini~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[mail function]
; For Win32 only.
SMTP = gemini@herts.ac.uk
; For Win32 only.
sendmail_from = admin@enter.org
; For Unix only. You may supply arguments as well (default:
"sendmail -t -i").
sendmail_path =/usr/sbin/sendmail -t
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~code~~~~~~~~~~~~
<?php
if (@mail( 'myname@domain.ac.uk', 'subject', 'kafrila opa ligo ' ))
{
echo " mail sent";
}
else
{
echo " shit nothing sent";
}
echo "<p>email test . . .</p>";
?>
~~~~~~~~~~~~~~~~~~~~~~~~
Any idea ? Thanks in advance..
--
~~~~~~~~~~~~~~~~
Sapilas@/dev/pinkeye
~~~~~~~~~~~~~~~~