Re: 2 Issues for Mail() in Win/PHP4-

From: Date: Mon, 04 Nov 2002 14:05:16 +0000
Subject: Re: 2 Issues for Mail() in Win/PHP4-
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16717@lists.php.net to get a copy of this message
Thanks everyone for the good responses. I'm learning alot just reading through! ~marie Marie Monday wrote: > I'm a PHP newbie and have just installed php4.2.3 on WinNT 4.0 w/ IIS4.0 > > Already have set the SMTP and sendmail_from in php.ini. > 1). Mail function sends mail, except that none of the html form > variables are parsed into the email body $message. > The script works fine run from another hosted (apache) webserver. Is it > > a config or script issue? > 2). Received email message does not include the sender's email address > from $txtemail form variable. > Instead, it places their email address from the form in the message body > first line. > It is using the php.ini sendmail_from address. > > <?php > { > $recipient="marie.monday@somemail.net"; > $subject="Need Help"; > $message="$txtname submitted a helpdesk request by web form. > A computer tech needs to contact $txtname shortly at $txtphone or by > email at $txtemail regarding $txtproblem"; > $sender=$txtemail; > mail(trim($recipient), trim($subject), $message, trim($sender)); > } > ?> > > TIA, > ~marie -- ************************************************************************** E-mail correspondence to and from this address may be subject to the North Carolina Public Records Law and may be disclosed to third parties. **************************************************************************

« previous php.windows (#16717) next »