note 4259 deleted from mail by ronabop

From: Date: Wed, 11 Oct 2000 05:27:33 +0000
Subject: note 4259 deleted from mail by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6369@lists.php.net to get a copy of this message
Alright, noone seemed to be able to solve the problem of PHP sending mail from "nobody@myhost" so I decided to make a little work around. I hope this helps people a bit. <PRE> $fp = popen('/usr/sbin/sendmail -t', "w"); fputs($fp,"To: $ton"); fputs($fp,"From: $emailn"); fputs($fp,"Subject: $subjectnn"); fputs($fp,$message); fputs($fp,"n"); pclose($fp); </PRE>

« previous php.notes (#6369) next »