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);
Thread Starter
leoly
(@leoly)
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.
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’
Thread Starter
leoly
(@leoly)
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.
Hmm, that’s odd. I can’t imagine why, unless WP Better Emails is not using the wp_mail hook properly.
Thread Starter
leoly
(@leoly)
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.
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.
Thread Starter
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
Hmmm…I’m at a complete loss on this one, sorry.
Thread Starter
leoly
(@leoly)
no problem, thanks for your help and the awesome plugin.