Support » Plugin: Mingle Forum » Help- how to change admin email address

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author cartpauj

    (@cartpauj)

    Right now the only way to do this is to find this line in the wpf.class.php file:

    wp_mail($to, $subject, make_clickable(convert_smilies(wpautop($this->output_filter(stripslashes($message))))), $headers);

    And replace it with something like:

    wp_mail('youremail@address.com', $subject, make_clickable(convert_smilies(wpautop($this->output_filter(stripslashes($message))))), $headers);

    I made the change from $to to my email address and it crashed my site. When I search the wpf.class.php file, WP Mail shows up 3 times, I only changed the one that had the $to symbol.

    Is there another method? Thanks.

    Plugin Author cartpauj

    (@cartpauj)

    You have to wrap the email address in single or double quotes. Otherwise it will crash your site 🙁

    “email@address.com” or ’email@address.com’

    Thank you it worked :). Also, thank you for the best WordPress Forum Plug-in.

    ps. just a heads up, with this method the outgoing emails no longer use the WP Better Emails plug-in.

    Plugin Author cartpauj

    (@cartpauj)

    Hmm, that’s odd. I can’t imagine why, unless WP Better Emails is not using the wp_mail hook properly.

    yes, since the change the emails just get sent the regular way, but before the “hard code” email change, it was using the Better Emails plug-in just fine.

    Plugin Author cartpauj

    (@cartpauj)

    Did you change anything else? Switching from (string) $to to (string) ’email@address.com’ would not / or should not have caused anything different to happen.

    leoly

    (@leoly)

    the $to part is no longer present, I just have the code as is above, where $to is replaced by ‘youremail@address.com’

    thanks

    Plugin Author cartpauj

    (@cartpauj)

    Hmmm…I’m at a complete loss on this one, sorry.

    leoly

    (@leoly)

    no problem, thanks for your help and the awesome plugin.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Help- how to change admin email address’ is closed to new replies.