如何从电子邮件表单“从”字段中删除服务器?

I have a basic form created.

When the user fills and sends the form, in my client's email inbox it comes in FROM my server name.

I have been looking through the code where I can edit this, but I am more designer than programmer.

What should I be looking for?

Thanks so much

you can only setup a name "displayed" to the receiver first. If the receiver looks into the message-header he will still see the origin (your server).

This is the usual snippet for this (see $headers)

<?php
$to      = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "
" .
    'Reply-To: webmaster@example.com' . "
" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

In your PHP function you need to set the "From" in the header

mail("me@domain.com" "Subject", "Body", "From: sender@domain.com");
mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )

In the aditional headers you can add the From header, for example:

mail("user@domain.com", "Test", "message", "From: user@domain.com BCC:friend@domain.com")

Also, you can change the Default From header in the php.ini if my memory doesn't fail.