Re: override nobody@example.com

From: Date: Mon, 14 Jan 2002 21:07:02 +0000
Subject: Re: override nobody@example.com
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80494@lists.php.net to get a copy of this message
i perefer to use such mail code: $pipe=popen("/usr/sbin/sendmail -f vlasyuk@express.net.ua -i vlasyuk@express.net.ua","w"); $email_body="Customer name: $customer_name email: $email features: $features"; if ($pipe) { fputs($pipe,"To: vlasyuk@express.net.ua\n"); fputs($pipe,"From: $email\n"); fputs($pipe,"Subject: New order\n"); fwrite($pipe,$email_body); pclose($pipe);} }else{ print "Error, can't open pipe"; } _________________________________ Valery Vlasyuk http://www.cgi-network.net - free php scripts ----- Original Message ----- From: "toni baker" <tanknank@yahoo.com> To: <php-general@lists.php.net> Sent: Monday, January 14, 2002 11:00 PM Subject: [PHP] override nobody@example.com > When using the mail () function to send an email to a > linux server the header information shows two from > addresses. (1)e-mail address that was defined in $from > variable in the header. (2) nobody@example.com > > Can someone explain this? I only want the $from > variable to show up in the header. Can I do this > with the simple mail () function? Thanks > > Header info is below: > > >From nobody@mars.com Mon Jan 14 08:33:19 2002 > Return-Path: <nobody@mars.com> > Received: from localhost.localdomain > (localhost@example.com [204.65.32.5]) > by pluto@example.com (8.9.3/8.9.3) with ESMTP > id IAA12868 > for <pluto@example.com>; Mon, 14 Jan 2002 > 08:33:19 -0600 > Received: from mars@example.com > (IDENT:root@mars@example.com [204.65 > .32.11]) > by localhost.localdomain (8.12.1/8.11.2) with > ESMTP id g0EEXpOn001442 > for <pluto@example.com>; Mon, 14 Jan 2002 > 08:33:51 -0600 > Received: (from nobody@localhost) > by mars@example.com (8.9.3/8.9.3) id IAA09861; > Mon, 14 Jan 2002 08:35:08 -0600 > Date: Mon, 14 Jan 2002 08:35:08 -0600 > Message-Id: <200201141435.IAA09861@mars@example.com> > To: pluto@example.com > Subject: TESTING > From: jb@example.com > Reply-To: tm@example.com > > Mail () function below: > > $to = "pluto@example.com"; > $subj = "TESTING"; > $body="Begin101Test" . > "\n" . $N . > "\n" . $C . > "\n" . $r . > "\nEnd101"; > $header="From: " . $email . > "\r\nReply-To: tm@example.com"; > mail ($to, $subj, $body, $header); > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#80494) next »