Re: grabbing data and auto email set users
| From: | Chris | Date: | Mon, 10 Apr 2006 08:49:16 +0000 |
| Subject: | Re: grabbing data and auto email set users | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-41684@lists.php.net to get a copy of this message | ||
JeRRy wrote:
Hi, Ahh okay I thought NULL was blank. Okay I understand, therefore, hehe, I fixed it. <snip> $query = "select username from round3 where misc=''"; fixed it, the email got sent. Had to change a few strings also to match my database which I was not aware of. Forgot it actually. Now the only thing I need to know is how do I change the sender email is, currently it sets to the server default username. (e.g. username@servername.com <mailto:username@servername.com>) Is there a way to change that and the subject.You set the subject: mail($to, $subject, $message, $headers); You can set the "From" in the headers: $headers = "From: your_email_address\n"; $headers .= "Reply-To: your_email_address\n"; See http://www.php.net/mail for more info. -- Postgresql & php tutorials http://www.designmagick.com/