данные в письме или в прикрепленном файле имеют кодировку дос . читаю из windows. можно ли в команде майл указать кодировку или придется самому перекодировать перед отсылкой
encoding
The default MIME encoding to use in outgoing text messages and message parts. Valid values are 8bit or quoted-printable. The
default is 8bit. In case the mail transfer system is not ESMTP compliant, quoted-printable should be used instead. If there is
no need to encode a message, 7bit transfer mode is used, without regard to the value of this variable. Binary data is always
encoded in base64 mode.
но я бы делал старым добрым iconv-ом перекодировку перед отсылкой.