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.

    cenglish

    (@cenglish)

    Thanks for figuring this out. I was having the same problem and you helped me out!

    This is important. I installed that plug-in, had to experiment with the settings a bit, but only works properly after you actually modify the php code as described above. I’m glad wordpress has that code editor interface built in.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: HGK SMTP] Specify the reply-to address’ is closed to new replies.