note 90427 deleted from function.mail by danbrown

From: Date: Wed, 22 Apr 2009 12:45:01 +0000
Subject: note 90427 deleted from function.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153574@lists.php.net to get a copy of this message
Note Submitter: info [at] websol [dot] hu ---- I do have some problem with the mail() function... $headers = "MIME-Version: 1.0\r\n"; $headers.= "Content-Type:text/html; charset=iso-8859-2\r\n"; $headers.= "From:".$from."\r\n"; $headers.= "Reply-To:".$reply."\r\n"; $headers.= "Cc:".$CC."\r\n"; $headers.= "Bcc:".$BCC."\r\n"; // ini_set('do_not_reply', 'do_not_reply@domain.hu'); mail($to,$subject,$body,$headers,"-fdo_not_reply@domain.com"); ------ the example works fine above, but if I change the last part of the mail() for example: mail($to,$subject,$body,$headers,"-fdo_not_reply@domain.hu"); then my mail does not leave the server at all. so what could be the problem using a two characters "regio code" like ".hu" instead of using a three character ones like ".com"? How come the ".com" works and the ".hu" is not? And trust me the ini_set does not help eather. Any thoughts?

« previous php.notes (#153574) next »