i have a pretty basic php email form, but for some reason when it sends the email , the "from" address shows up as "me@locahost.com" is there a way i can change that to something else? Thanks.
If you're just using the php mail() function, this is how you're supposed to do it: <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> PHP: If you're not, post the code sample here.
AKA, you have to add the optional header parameter for the mail function. As given above, 'From: ', can be used to define the sender.