lua-resty-mail icon indicating copy to clipboard operation
lua-resty-mail copied to clipboard

utf-8 support for subject

Open alfasmartplayer opened this issue 1 year ago • 1 comments

Everything is fine, but I noticed that the subject header does not support utf-8 when sending a mail. I have problems with "şğç..." and similar characters

alfasmartplayer avatar May 14 '23 04:05 alfasmartplayer

I think I solved it myself until the answer came...

message.lua:135

  if data["subject"] then
	headers["Subject"] = "=?UTF-8?B?" .. wrapped_base64(data["subject"]) .. "?="
  end

alfasmartplayer avatar May 14 '23 04:05 alfasmartplayer