[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Email subject in utf-8
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 3 Jun 2015 16:14:40 -0300
> 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