WordPress.org

Ready to get started?Download WordPress

Forums

Mingle Forum
[resolved] Help- how to change admin email address (11 posts)

  1. leoly
    Member
    Posted 1 year ago #

    Mingle forum currently sends all admin emails to the WP admin email. I would like to designate a separate email for forum admin purposes, is there a way to do that?

    thanks

    http://wordpress.org/extend/plugins/mingle-forum/

  2. cartpauj
    Member
    Plugin Author

    Posted 1 year ago #

    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);

  3. leoly
    Member
    Posted 1 year ago #

    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.

  4. cartpauj
    Member
    Plugin Author

    Posted 1 year ago #

    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'

  5. leoly
    Member
    Posted 1 year ago #

    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.

  6. cartpauj
    Member
    Plugin Author

    Posted 1 year ago #

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

  7. leoly
    Member
    Posted 1 year ago #

    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.

  8. cartpauj
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  9. leoly
    Member
    Posted 1 year ago #

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

    thanks

  10. cartpauj
    Member
    Plugin Author

    Posted 1 year ago #

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

  11. leoly
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.