mail function problem

From: Date: Fri, 30 May 2003 08:00:50 +0000
Subject: mail function problem
Groups: php.general 
Request: Send a blank email to php-general+get-149531@lists.php.net to get a copy of this message
Hi, I have a problem with the "mail" function; it always sends mails assuming in the "from" field the user "apache@myserver.mydomain". I tried to override it with this code: ---------------- <? $email = "account@domain.it"; $subject = "prova invio mail "; $message = "parappaaaaaaaaaaa "; $headers = "From:webmaster@myDomain.it\nReply-To:webmaster@myDomain.it"; mail($email, $subject, $message, $headers); ?> ------------------ It doesn't work... Can anybody help me ? -------------- Francesco Bersani

« previous php.general (#149531) next »