Hi there!
I'm using two plugins which I both love and need for my website. It is Contact Form 7 and WP Members.
Contact Form 7 is used for a variety of (contact)forms on my website.
WP Members controls the subscription from my users. When a registration email is sent, it was send with wordpress@mydomain.com and the name WordPress. Because I obviously didn't think this looked pretty, I made a changed to my theme functions.php:
add_filter( 'wp_mail_from', 'my_mail_from' );
function my_mail_from( $email )
{
return 'myemail@mydomain.com';
}
add_filter( 'wp_mail_from_name', 'my_mail_from_name' );
function my_mail_from_name( $name )
{
return 'My Name is displayed here now';
}
(as described here: http://butlerblog.com/2011/07/08/changing-the-wp_mail-from-address-in-wordpress-without-a-plugin/ )
BUT...
When since this edit, when I'm now receiving an email from a client using the Contact Form 7, it always is sent with the from email/name I've set up in the functions.php. This is obviously not practical since I can't find any emails back and it's not easy for an reply.
I was wondering if there was a way/hack/fix so WP will still sent registrations with the right from email/name, but I will also receive emails via the contact form with the right email/name from the sender.
Maybe a fixup in de Contact Form plugin files? Or maybe in the WP Members plugin files?
I really hope someone can help me!