Re: Problem with mail funktion

From: Date: Sun, 18 Sep 2005 03:09:51 +0000
Subject: Re: Problem with mail funktion
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-40288@lists.php.net to get a copy of this message
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


« previous php.db (#40288) next »