Sending email from db results

From: Date: Tue, 12 Dec 2000 06:04:59 +0000
Subject: Sending email from db results
Groups: php.general 
Request: Send a blank email to php-general+get-29827@lists.php.net to get a copy of this message
Hello I am writing a send lost password script, that takes the email that a user enters and compares it to the database to see if there is a match and then emails the username and password to the user. I already wrote the comparison stuff and I need to know how to write the mail command, I tried the manual but I am still confused if the strings are $email (the address in the database) and $username and $password what would the mail command look like if it is to say Subject: Your lost password Body of message: Here is your lost $username and $password Thanks in advance. Al

« previous php.general (#29827) next »