[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: xxx@gmail.com, from the email that the user wrote it in the email field: aaa@bbb.ccc , not from my host email which is: xxx@myhost.com .
---------------------------------
this is my part of code:
Expand|Select|Wrap|Line Numbers
- //my email
- $to = 'xxxx@gmail.com';
- //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