• Resolved amdesigngroupavon

    (@amdesigngroupavon)


    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!!!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi amdesigngroupavon,

    Unfortunately we aren’t able to provide support for the development behind building out a custom form in WordPress. However, you might consider downloading a free forms plugin from www.ads-software.com and investigating their code for emails. My guess would be that you may be missing some things that are specific to WordPress, but this process would hopefully help you to locate those details.

    Or if you’re willing/it’s feasible to start again from a different approach, you could also try starting with a forms plugin (like WPForms), which is already fully compatible with WordPress, and then adding your customizations to it.

    Hopefully one of these ideas helps get you on the right track!

Viewing 1 replies (of 1 total)
  • The topic ‘WP Mail in Custom PHP File Not Working’ is closed to new replies.