jonwitts
Member
Posted 10 months ago #
As I began to discuss in this post; and after further research into the wp_mail function and my hosts requirements to have the additional -f header sent with a valid email address from my domain... it appears this is a know issue that has been discussed on the core trac here: http://core.trac.wordpress.org/ticket/5007 and is documented in the code here: http://phpxref.ftwr.co.uk/wordpress/nav.html?wp-includes/pluggable.php.source.html#l379
So any clues as to how I can get Grunion to send the from header as my hosts require; as the core functions using wp_mail seem to be working fine; just the wp_mail call in Grunion that does not...
Any help would be much appreciated.
Jon
jonwitts
Member
Posted 10 months ago #
I think I may be getting closer on this one, but I still can't quite get it...
I think I need to get Grunion to apply the wp_mail_from and wp_mail_from_name filters just before it calls wp_mail
This should then set the from address in the headers to be wordpress@mydomain.com
I have checked this with a standard php mail() function and adding -f "wordpress@mydomain.com" to the headers will allow the email to be sent...
Does anyone have any clues about how I need to get this added into Grunion so it sends mail through my host?
Cheers
Jon
jonwitts
Member
Posted 10 months ago #
Never mind... In the end I found this post which lead me to install wp_mail_smtp to get contact forms to mail out from a fasthosts site... I have installed Contact Form 7 too; as I prefer the ability to add fieldsets and legends to my form...