fatfree-core
fatfree-core copied to clipboard
Subject encoding in SMTP class
The SMTP class doesn't automatically encode the Subject
header.
Is that on purpose or is it a bug?
Probably not just implemented. I had that one on my desk some weeks ago.. it's a tricky task, tried to implement it myself, but not good idea. Best bet is to use iconv_mime_encode
, if available. I ended up with this one https://github.com/ikkez/f3-mailer/commit/de405dd9a6c5dd8ea099e40bddbbe67dacd29012 which goes on top of this SMTP plugin, so I'll just set an already encoded Subject. Not sure though, if that's on purpose to do so.