I've made a form form (contact us) page , with 3 fields:
[Email,Subject and Message]
it's cool for now but what happens is when someone submits the form (send an email), it sends the mail from the host email I uploaded my site on .
what I want is to receive the message to my gmail accout: [email protected], from the email that the user wrote it in the email field: [email protected] , not from my host email which is: [email protected] .
---------------------------------
this is my part of code:
------------------------------------------
I hope you can help me..
thanks in advance
[Email,Subject and Message]
it's cool for now but what happens is when someone submits the form (send an email), it sends the mail from the host email I uploaded my site on .
what I want is to receive the message to my gmail accout: [email protected], from the email that the user wrote it in the email field: [email protected] , not from my host email which is: [email protected] .
---------------------------------
this is my part of code:
Code:
//my email $to = '[email protected]'; //subject $subject = $this->subject; //message $message .= $this->message; //headers $headers = "From: "; $headers .= $this->email; $headers .= "\nReply-To: "; $headers .= $this->email; mail($to, $subject, $message, $headers);
I hope you can help me..
thanks in advance
Comment