Support » Developing with WordPress » wp_mail headers and “from” name cutted…

  • Hi,

    just a question. With the function

    wp_mail($Email, “Request from ” . $_POST[‘worker’] . ” of the ” . $_POST[‘company’], $msg, “From:” . $_POST[‘worker’] . “<” . $_POST[’email’] . “>”);

    I get the “from” name with the ending letter cutted off.

    How can I fix it?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You mean the $_POST['worker'] value is missing the terminal character? No matter how long the name? Every time, no matter what name?

    Is there any PHP code that processes $_POST['worker'] before the wp_mail() call? If not, there must be script client side clipping the string before POSTing it to the server. It may be the problem can only be solved by methodical debugging. Before diving into that, check you browser’s error console for any indication of client side errors. Define WP_DEBUG as true in wp-config.php to see any server side warnings that might be involved.

Viewing 1 replies (of 1 total)
  • The topic ‘wp_mail headers and “from” name cutted…’ is closed to new replies.