Re: Sendmail

From: Date: Sun, 24 Feb 2002 03:46:10 +0000
Subject: Re: Sendmail
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85977@lists.php.net to get a copy of this message
Do you have a specific reason for calling Sendmail directly? If not, try http://www.php.net/manual/en/function.mail.php Erica "Uma Shankari T." <umashankari@lantana.tenet.res.in> wrote in message news:Pine.LNX.4.21.0202240749150.9430-100000@lantana.iitm.ernet.in... > > > 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 (#85977) next »