Re: Webmail

From: Date: Tue, 05 Mar 2002 21:48:05 +0000
Subject: Re: Webmail
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87358@lists.php.net to get a copy of this message
> Hi > > can anyone quickly run through how to use php to send the contents of a > form via e-mail using sendmail? How do you begin? > > thanks I use this (omitting error checking): $message = "Name: $name\nAddress: $address\n"; mail("webmaster@yoursite.com", "Message Subject", $message, "From: $email"); This assumes that name, address, and email are form variables that the user inputs. See http://www.php.net/manual/en/function.mail.php for more information about mail(); Josh Trutwin

« previous php.general (#87358) next »