|
#1
|
|||
|
|||
|
I have some small php forms in some of my sites. They work fine, I get the emails. I can specify the subject. I have it set up to reply to the email of the person who filled out the form. When I get the form email they come from "Nobody" Can I change that to "your website" or other? If so, how.
Thanks, great service, great value. Very happy with your reseller package so far. |
|
#2
|
||||
|
||||
|
In the php mail function you can set other headers like this:
PHP Code:
|
|
#3
|
|||
|
|||
|
This is what I have but no matter what I put for From, it always comes from NOBODY. Tried to do a $_POST['firstname'] also, but no luck. The subject and reply to work like they should. Thought there might be something in the control panel to make this change.
-----------------------------> $recipient = "info@mysite.com"; $subject = "CONTACT FORM from mysite.com"; $mailheaders = "From: Visitor inquiry\n"; $mailheaders = "Reply-To:". $_POST['email']."\n\n"; mail($recipient, $subject, $msg, $mailheaders); -----------------------------> |
|
#4
|
||||
|
||||
|
Quote:
$FromName = "user"; $fromemail = "MyEmail@mydomain.com"; $mailheaders = "From: ".$FromName." <".$fromemail.">"; |
|
#5
|
||||
|
||||
|
Quote:
Instead you should concatenate the two headers in the $mailheaders variable: PHP Code:
Stef. |
![]() |
| Bookmarks |
| Thread Tools | |
|
|