WordPress.org

Ready to get started?Download WordPress

Forums

set From address in sendmail.php (6 posts)

  1. yanay
    Member
    Posted 1 year ago #

    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

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Which theme are you using?

  3. yanay
    Member
    Posted 1 year ago #

    sonartech
    very old and highly modified theme
    and WP 2.9.2

  4. yanay
    Member
    Posted 1 year ago #

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

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

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

  6. yanay
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags