Is there a conditional check I can run for phpmailer_init or a wp_mail parameter that let’s me apply my custom phpmailer_init SMTP settings only on specific wp_mail actions or does phpmailer_init always run sitewide?
I have Contact Form 7 and Configure SMTP installed on my website. When a user submits a message through the form, everything comes through fine but the sender email is never displayed. Instead, it is displayed as my own email so I have no clue who sent the message. It just shows up as “To: […]
Assume we have blank WP site and we want to setup SMTP settings programmatically in our plugin or theme. What’s the easiest way to do it without changing core files?