lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> how can I encode email subject or sender name in Lua? I'm using socket.smtp
> to send email messages and everything else works fine. In PHP I can do
> something like this:
> '=?utf-8?B?'.base64_encode <http://www.php.net/base64_encode>($subject).'?='

See http://lua-users.org/wiki/BaseSixtyFour for a pure Lua solution.
See also the links at the end, especially https://github.com/ErnieE5/ee5_base64