I'm using [WP Mail From] (ver 0.5) plugin to change the default "From" as used by the WordPress installation.
Unfortunately, this interacts with [Contact Form 7] in that when I use a From field set with [your-name] <[your-email]> , (assuming variables your-name and your-email are set), these get overridden by [WP Mail From] plugin.
The [WP Mail From] uses the filter hooks wp_mail_from and wp_mail_from_name and a priority of 1.
I am assuming that [Contact Form 7] is also using the same filter hooks (wp_mail_from and wp_mail_from_name) to override the WP Default settings (with the values set in [your-name] <[your-email]> in this case).
What I am after is a method of changing the priority of [Contact Form 7] to a higher value than that of [WP Mail From]
This will allow [Contact Form 7] to take priority over the default system settings. (It will also allow [Contact Form 7] to function alongside [WP Mail From] plugin.
I think changes are required in function compose_and_send_mail( $mail_template ) (in classes.php).
It already uses wp_mail, but it does not use the filter hooks wp_mail_from and wp_mail_from_name to set the sender.
If it set the filter hooks wp_mail_from and wp_mail_from_name with a priority >1 it would take prescendance over [WP Mail From] and function correctly.
erm.. I hope that makes sense...
Regards
Chris