[eluser]boltsabre[/eluser]
Quote: because when you said it worked before, and then stopped working,.... I’m stilled confused as to how that ever worked to begin with.
I could have, and should have, worded that a little better. It was originally working, with just a single hard coded config array just for gmail.
Then I added the environment related stuff, creating variables and putting them into the config array... bad me used a bunch of copy and pastes, that's how I ended up with single quotes and broke it.
However, it'd been several months since I'd done anything related to sending emails (I've been working on content), and I made the assumption that it was something that had changed with gmail, rather than a bug in my code when my error logs were not showing anything errors and when I'd checked against the files previous version and could see no difference with my gmail settings (apart from those pesky quotes!). At that stage I was like "hmmm, no php errors, same email settings, can't be me, must be them"... how wrong I was ;-)
Yes, valuable lessons to be learnt, many of them! A painful 10 hours of my life gone, but much the wiser for the experience!