Support » Fixing WordPress » set From address in sendmail.php

  • yanay

    (@yanay)


    Hi
    What code needs to be in sendmail.php document or elsewhere to include a From address in forms being send from the site?
    I can’t see there’s such a definition in my current sendmail.php

    <?
    $to = "name@domain.com";
    $subject = "CourseLead";
    $content = $_POST['name'] . ", " . $_POST['phone'] . ", " . $_POST['email'] . ", " . $_POST['course'];
    $headers ="Content-type: text/plain; charset=utf-8\r\n";

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Andrew Nevins

    (@anevins)

    Which theme are you using?

    yanay

    (@yanay)

    sonartech
    very old and highly modified theme
    and WP 2.9.2

    yanay

    (@yanay)

    Anyone please?
    Where do I define a From address in sendmail.php?

    WPyogi

    (@wpyogi)

    You’re using WP 2.9.2??? That’s a BIG security risk.

    yanay

    (@yanay)

    It is
    but the template cannot take any WP updates
    We are building a new site very soon
    Any ideas about setting up From address in sendmail.php or elsewhere?
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘set From address in sendmail.php’ is closed to new replies.