• Hi there,

    I’ve just installed this plugin on my test server however I’m struggling to get it to work. Just using the settings form input to test an email address it seems to reject all emails, specifically my own and those of my validated customers. Am I doing something wrong?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Venutius

    (@venutius)

    A bit more info, it’s failing simulating sendin an email, I’ve set the correct email domain, my test service is just another website so not seeing why this should fail.

    Thread Starter Venutius

    (@venutius)

    Some more info, it’s the following line which is failing, in leav-class.inc.php, function simulate_sending_an_email:

    $answer = @fgets( $this->smtp_connection, self::$SMTP_CONNECTION_TIMEOUT_LONG );
    if( substr( $answer, 0, 3 ) != '220' ) // no answer or rejected

    Which is before the email hostname get’s involved.

    One thing I noted is that the second parameter to fgets is not a timeout, it’s the length of the read data but I don’t think thats the cause of the issue, it just means this will read up to 3000 bytes or until it gets an end of line.

    Thread Starter Venutius

    (@venutius)

    So ding more work on this, I moved all the checks from function simulate_sending_an_email into get_smtp_connection_to_host and the check worked. It seems that $this->smtp_connection is empty when accessed from simulate_sending_an_email

    Thread Starter Venutius

    (@venutius)

    Actually, the connection is empty for both functions.

    Plugin Author Dirk Tornow

    (@smings)

    Hi Venutius,

    I would like to analyze the described behavior together with you. Could I get in direct contact with you for a fast solution?
    You can contact me at dirk@smings.com

    Moderator Yui

    (@fierevere)

    永子

    @smings

    I hope “fast solution” does not mean providing credentials to log in to user site or server.

    I’m am 100% sure you mean well but please
    never ask for credentials on these forums.

    https://wordpress.org/support/guidelines/#the-bad-stuff

    Also, please read this article on the nuances of such a request.

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us escalating this to the plugins team.

    It’s never necessary to do that. Here’s why.

    There are many ways to get information you need and accessing the user’s site is not one of them. That’s going too far.

    You get the idea.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Rejects all emails’ is closed to new replies.