fatfree-core icon indicating copy to clipboard operation
fatfree-core copied to clipboard

Subject encoding in SMTP class

Open xfra35 opened this issue 5 years ago • 1 comments

The SMTP class doesn't automatically encode the Subject header.

Is that on purpose or is it a bug?

xfra35 avatar Apr 24 '19 16:04 xfra35

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.

ikkez avatar Apr 25 '19 12:04 ikkez