Sendmail

From: Date: Sun, 24 Feb 2002 02:26:20 +0000
Subject: Sendmail
Groups: php.general 
Request: Send a blank email to php-general+get-85970@lists.php.net to get a copy of this message
Hello, Can anyone help me in solving this problem.. For sending mail using sendmail i have written the code like this but it is giving some error messages in the From address instead of address $TO=Me; $user=myaddress@domain.tld; $fd = popen("/usr/sbin/sendmail -t","w"); fputs($fd, "To: $user\n"); fputs($fd, "From: $TO\n"); fputs($fd, "Subect: Feedback\n"); $ver = phpversion(); fputs($fd, "X-Mailer: PHP/FI $ver\n\n"); fputs($fd, "Hii $user,\n $body \n"); pclose($fd); Can anyone tell the solution for this..... -Uma

« previous php.general (#85970) next »