WordPress.org

Ready to get started?Download WordPress

Forums

cool_blade's wp-mail Invalid sender (3 posts)

  1. c0c0c0
    Member
    Posted 9 years ago #

    Hello,

    I am using cool_blade's wp-mail drop in and I sent a couple of test posts by e-mail via my sidekick 2. The cron job didn't post it so I manualy tried to post and this is what I got:

    #!/usr/bin/php -q
    Invalid sender: phone@email.com!
    Not adding email!

    So my question is where do I go to add e-mails. I would like to be able to post from multiple addresses.

    Thanks!

    Jared

  2. Fiveblades
    Member
    Posted 9 years ago #

    the part in the wp-mail.php should be altered to make "multi poster"
    ================php code original=============

    if ( empty($from) ) { echo '<h1> Invalid Sender - Emtpy! </h1>'; die;}
    $sql = 'SELECT id FROM '. $tableusers.' WHERE user_email=\'' . addslashes($from) . '\'';
    if (!$poster = $wpdb->get_var($sql))
    {
    echo '<h1>Invalid sender: ' . htmlentities($from) . " !</h1><h2>Not adding email!</h2>
    \n";
    die;
    } else {
    return 'TRUE';
    }
    }
    ==============change into================
    return 'TRUE';
    }

    Greetings Fiveblades

  3. c0c0c0
    Member
    Posted 9 years ago #

    Worked great! Thank you Fiveblades!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.