crackenuts
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Not losing slight core settings when updating WordPressYeah, very aware of the sensitivities of changing core files. But that’s the only fix I can find. It’s Apple Mail, or Mac Mail, or whatever they call it. So a commonly used client. The problem’s obviously pervasive enough that I found the answer quite quickly by Googling it.
Thanks for your time. Appreciate it.
Forum: Plugins
In reply to: [WooCommerce] Entire cart/basket a link!?Hi Phil,
Thanks for the reply. Yes, sorry, more information the better, and I didn’t give you much. I am trundling my way through WordPress (about 9 months now) and now Woocommerce. I’m developing my own theme from scratch, so the stylesheet’s missing a lot since, well, I haven’t done any styling yet. Either way, I realised it was because of my index.php template. Had stray links in it. So nothing to do with style anyhow.
Thank you for the reply!
Well, it’s me again,
What a rollercoaster of emotions! So, I think I’ve fully resolved it (it terrifies me to say that). So, for anyone who may be experiencing a similar issue and this thread is TL:DR here is what happened…
I was running WP Mail SMTP to bolster my
wp_mail()
function. I found that when I used the “TEST EMAIL” button via the WP Mail SMTP settings it sent through to any mail address I tried. But when I tried to input any address into thewp_mail()
function it only sent to Gmail and Exchange, but not others.So, after trying Mailgun and pointing DNS records all sorts of which ways, and then deciding to leave Mailgun (because it didn’t change anything), then speaking for hours with my ISP, I arrived at the same place I’d started at. So I tried something else; deactivate the WP Mail SMTP plugin and try and reconfigure the PHP Mailer settings through the `phpmailer_init’ hook. That didn’t work either.
Those familiar with the plugin will know that when setting up you choose what type of mailer you use; PHP, Google, Mailgun, Sendgrid, Other SMTP. Other than my little Mailgun excursion I had chosen “Other SMTP”. The reason I did this was because (I think) that when setting up mailboxes through my ISP, the type of mailbox I had to choose was always “Other”. Human logic.
*NB PART* : So, I changed the type of mailer to PHP (the first option in the plugin’s settings) and everything works. No matter what address I plug into my
wp_mail()
function it goes through.I hope this helps anyone who finds a similar problem. Save yourself two weeks of angst!
Thank you Slava for the help, and the plugin. It is not faulty, I’m just a faulty human… or just a human. Good luck all!
Hi Slava,
Bad news, it wasn’t resolved as I thought it was. Celebrated too early. Still doing the same thing – TEST EMAIL sending fine, but
wp_mail()
not being able to do the same.Hi Slava,
Ok, it’s all sorted. Turns out it was a server-side issue. Some dark arts on their side needed to be changed. Wherever I run
wp_mail()
now the mails all send off fine. Thank you for your patience, and the plugin!Hello,
Ok, so I came across the practice of mu-plugins. According to the codex it loads whatever’s in there before normal plugins. So it’s definitely running wp_mail() before WP Mail SMTP is doing anything. Sadly it didn’t work. Still sending to Gmail and Exchange but not others.
Hi Slava,
Thanks so much for the reply. Ok, so I’m not too sure how to do that. As it stands I’m simply trying to call wp_mail() in a test template page (simply to test). Since your reply I’ve tried to call it as a plugin at one time and from functions.php at another, in the hope that one of those methods might precede the WP Mail SMTP plugin modifying $phpmailer. But alas, nothing took. Learning as I go here; read various forum posts talking about changing the loading order of WordPress. I’m hoping there’s a simpler solution here. Please can you guide me as to how I might use wp_mail() before the plugin modifies $phpmailer.
Thanks for the help!