Date: 02/11/03
- Next message: Robin Mordasiewicz: "[PHP-INST] does pdflib need safemode = Off"
- Previous message: Joaquim Homrighausen: "Re: [PHP-INST] PHP Fatal error: Call to undefined function: mail()"
- In reply to: Vladimir Galkov: "[PHP-INST] Re: Problems with mail()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
First of all, thanks for the suggestions. My problem is 'almost' solved.
I have succeeded sending an e-mail with the mail function. The problem
was in the php.ini file. I had limited the execution of phpinfo() and
system() commands. If I enable both commands, the mail() function works
fine.
The problem is that I would like to have both functions limited. PHP is
installed in a multiuser environment and there's a lot of information
available with phpinfo(). Is it possible to make mail() work with
phpinfo() and system() disabled? If that's not possible, how can I limit
the information phpinfo() gives -ideally it should give no information-.
Thanks,
Juanan
Vladimir Galkov wrote:
>I feel the qweston become offtopick soon ;-)))))))
>
>1. Look into permissions of the user you set to run web service
>2. Use simple <? print phpinfo(); ?> code to look at real values your php
>enviroment varibles have.
>3. Check
>[mail function]
>; For Win32 only.
>SMTP = < smtp.somewhere.go >
>
>; For Win32 only.
>sendmail_from = < webmaster <email protected> >
>
>4. Write code to send mail threw socets, then you'll see targeted server
>ansver on every your request.
>
>
>
>
>""juan ant. martМnez"" <Juanan.Martinez <email protected>> сообщил/сообщила в новостях
>следующее: news:3E47BB91.10806 <email protected>
>
>
>>Hi,
>>
>>I'm new to php. I have downloaded and installed PHP 4.3.0 on a Windows
>>NT 4.0 server. I have tested the configuration and changed the
>>parameters in php.ini to fit my environment.
>>The basic code works fine, but one of the things I'd like to do is to
>>send mails. I have found the sample code and tested the following :
>>
>>mail("juanan.martinez <email protected>", "test", "This is a test!","From:
>>juanan.martinez <email protected>")
>>
>>But when I run this code, I get the following error:
>>
>>Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or
>>custom "From:" header missing in d:\www\mail.php on line 9
>>
>>In fact, the sendmail_from is configured in the php.ini file (in the
>>windows directory), and also forced in the line above (I have tried also
>>without the "From:..." but it does neither work) . The smtp server is
>>in a remote machine, and in fact, no connection is made from the php
>>script (I have looked through the logs and there has been no attempt to
>>connect)
>>
>>Does anyone know where is the problem? Any suggestions will be welcomed.
>>
>>Thanks in advance,
>>
>>Juanan
>>
>>
>>
>
>
>
>
>
-- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Robin Mordasiewicz: "[PHP-INST] does pdflib need safemode = Off"
- Previous message: Joaquim Homrighausen: "Re: [PHP-INST] PHP Fatal error: Call to undefined function: mail()"
- In reply to: Vladimir Galkov: "[PHP-INST] Re: Problems with mail()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

