Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 5019

WP Mail in Custom PHP File Not Working

$
0
0

Replies: 0

Hello!

I’m trying to set up a custom-coded HTML form within WordPress. I got it working correctly on a test server, but then when I integrated it into WordPress and got it functioning, I couldn’t get the email to work. I switched it to the wp_mail function and that didn’t work, either. I remembered we’d had issues sending emails from the site before and had installed WP Mail SMTP, sending via Gmail. I tried changing the headers to use the Gmail address and even tried removing the headers, but the emails won’t go through.

Is there some way I can send via WP Mail SMTP’s settings from my custom PHP file? Is there something special I need to do?

Thank you so much!!!


Viewing all articles
Browse latest Browse all 5019


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>