GUI / lua-resty-mail

A high-level, easy to use, and non-blocking email and SMTP library for OpenResty.
MIT License
66 stars 16 forks source link

utf-8 support for subject #8

Open alfasmartplayer opened 1 year ago

alfasmartplayer commented 1 year ago

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 commented 1 year ago

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