Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rizdina

    (@rizdina)

    Okay, I believe I figured out a fix. The developer will have to chime in if he believes this breaks his plugin. But it seems to be working for me.

    Go to the plugin editor in WP and edit the HGK SMTP plugin file: hgk-smtp.php

    Find this line:

    $pm->AddReplyTo($pm->From, $pm->FromName);

    Looks to me that this line is in the wrong place. It should be after all the if-then-else statements not before them. So, cut that line and move it directly after the last “if” statement.

    So, the lines should look like this (I commented out the original line rather than deleting it so you could see where it used to be):

    /* $pm->AddReplyTo($pm->From, $pm->FromName); */
    if (!empty($this->hgk_mail)) {
    $pm->From = $this->hgk_mail;
    } elseif (!empty($this->hgk_smtpuser)) {
    $pm->From = $this->hgk_smtpuser;
    }
    if (!empty($this->hgk_name)) {
    $pm->FromName = $this->hgk_name;
    }
    $pm->AddReplyTo($pm->From, $pm->FromName);

    Developer, if this breaks your plugin, pls chime in with another fix.

    Otherwise, hope this fix helps others in the same boat myself.

    Thread Starter rizdina

    (@rizdina)

    Thanks for the quick reply. That seemed to do the trick. For some reason the problem was only on Google Chrome. It seemed to be doing fine on IE.

    Thanks again.

    Riz.

    Just started getting the same error this morning. I check the XML build status daily and I know it was not there yesterday.

Viewing 3 replies - 1 through 3 (of 3 total)