E-mail form sender name instead of e-mail ? (PHP) -
I have created a PHP Email Fluder and it works fine. However, while testing it, I am only receiving the sender e-mail address as the name. What I need is the name of the sender.
Below is the code.
Can anyone help me? Thank you ...
& lt ;? Php $ from = $ _POST ['from']; $ = $ _POST ['OT']; $ Theme = $ _POST ['theme']; $ Message = $ _POST ['message']; $ Headers = "From:". $ From; If ($ _POST ['radio'] === "plain") {$ header = "content-type: text / plain; charset = UTF-8 \ r \ n"; $ Headers = "From:". $ From; } Otherwise ($ _POST ['radio'] === "html") {$ header = "content-type: text / html; charset = UTF-8 \ r \ n"; $ Headers = "From:". $ From; } Mail ($ $, $ theme, $ message, $ header); ? & Gt;
Try something like this:
$ Headers = "From: Sender's name & lt;" $ From "& Gt;";
Comments
Post a Comment