Glad to help. I don’t use SMTP for anything so not sure what might be happening or needs done, etc. I am glad to help though if there is any way possible, let me know what I can do.
Thank you, Jeff. I would appreciate any tip about how to troubleshoot this, because I’m basically stuck. Commenting the line makes the form work. Uncommenting it makes the form stop working.
And it doesn’t matter if I change the $headers variable to be an array either. For some reason, the From: header breaks the form 🙁
Hey Jeff,
Solved it. In the end the problem was in the SMTP plugin. I just had to change it and that’s it.
Sorry for the false alarm!
No problem, glad you got it sorted @sixaxis.
Just a little update for those who have the same problem. A solution was to switch SMTP plugins, like I mentioned.
But I also found out that if you still want Contact Form X and SMTP Mailer to work together, you must have the exact same address you set up in SMTP Mailer as From address in Contact Form X.
Good to know, thank you for reporting @sixaxis.
Also other than SMTP Mailer, which SMTP plugin works with CFX?
-
This reply was modified 2 years, 10 months ago by
Jeff Starr.
I’ve tried Easy WP SMTP and SMTP Mailer. Easy WP SMTP works out of the box with any sender address you input, and SMTP Mailer requires that you send it from the same one you configure in there. At least, that’s what my tests show. FYI, this is what the author of SMPT Mailer has to say: https://wordpress.org/support/topic/not-working-with-contact-form-x/
Thanks, so would this sound accurate:
- CFX is compatible with Easy WP SMTP out of the box
- CFX is compatible with SMTP Mailer when the setting “Email Address From” is the same as the email set up in SMTP Mailer
That way I can add to the readme/docs FAQs.
Yes, Jeff, that sounds good 🙂