i found this code but i dont know if it helps
// wp_mail altered for bbPress (Mail sent from address)
add_filter( 'wp_mail_from', 'email_sent_from' );
function email_sent_from( $email )
{
return 'noreply@sitename';
}
Looking for the same issue…any luck?
heres for sent from name
// Change the Mail Sent from NAME
add_filter( 'wp_mail_from_name', 'email_sent_from_name' );
function email_sent_from_name( $name )
{
return 'YOUR COMPANY';
}
credit goes to jordan boston for both functions
https://gist.github.com/jordanboston
Thank you for the help!
I did fix the issue a bit after posting. I used this plugin.
By the way, is it an easy way to fix what shows after “to:”? For me it now says “to:noreply@www.mydomain.com”, instead of to:”the user’s email-adress”. It isn’t really a big issue, but it would be cool to know how to change that.
Peder
@chakelan is the plugin causing your new problem??
I think so, but before I installed the plugin no emails were being sent (I don’t know why, but changing the from-address fixed it), so I am happy.
@chakelan you probably need to go to wordpress.org ‘s support to see whats up with your wordpress mail functions or something to.