RE: [PHP-DB] Problem with mail funktion
| From: | Daryl Booth | Date: | Sun, 18 Sep 2005 03:23:08 +0000 |
| Subject: | RE: [PHP-DB] Problem with mail funktion | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40289@lists.php.net to get a copy of this message | ||
I'm not sure what should be in the php.ini.
Where can I find out what needs to be in the SMTP section?
-----Original Message-----
From: Chris [mailto:listschris@leftbrained.org]
Sent: Sonntag, 18. September 2005 05:10
To: php-db@lists.php.net
Subject: Re: [PHP-DB] Problem with mail funktion
As far as I know the "Unknown error" related to the mail function
indicates that PHP could not connect to the SMTP server specified in
php.ini.
You could load phpinfo(); and check to see what php.ini file you are
using. Then check that for the SMTP setting.
FYI: doing a google search on 'PHP mail "Unknown Error"' got me multiple
hits that would at least suggest checking your configuration.
Chris
Daryl Booth wrote:
>Hi,
>
>
>
>I'm trying to set up a simple mail form but the following code:
>
>mail($empfaenger,$betreff,$msg,$header);
>
>gives me the error:
>
>Warning: Unknown error in C:\FoxServ\www\Dad\contactform.php on line 87
>
>
>
>Line 87 is the mail function line all of the variables are spelt right
>empfaenger=recipient and betreff=subject.
>
>
>
>According to www.selfphp.info <http://www.selfphp.info/>
>the syntax is
>correct what am I doing wrong?
>
>
>
>Php version is 4.2.2
>
>
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php