SwiftMailer wrong content message via smtp

I have problem with content send html message via smtp swiftmailer component under yyi2(2.0.1).

When I send message from script on linux system message show me wrong content of massage, in mail program message show me information


Content-Type: text/html; charset=utf-8

Content-Transfer-Encoding: quoted-printable

Hi, sebokra

...

Content-Type: text/html; charset=utf-8

Content-Transfer-Encoding: quoted-printable

....

Hi, sebokra



when the same script i use on windows apache message looks excelent.

I used script


return \Yii::$app->mailer->compose()

->setFrom([\Yii::$app->params['supportEmail'] => \Yii::$app->name . ' (automat)'])

->setTo($this->mail)

->setSubject('Reset hasła dla firmy - ' . \Yii::$app->name)

->setTextBody("Hi, ".$user->www_username."...")

->setHtmlBody('<b>Hi, '.$user->www_username.'...')

->send();



my config component


'mailer' => [

  'class' => 'yii\swiftmailer\Mailer',

  'useFileTransport' => false,

  

'transport' => [

   'class' => 'Swift_SmtpTransport',

   .....

],

I resolve problem in catalog \vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mime script SimpleMimeEntity.php I change procedure public function getBoundary()


$this->_boundary = '_=_swift_v4_'.time().'_'.md5(getmypid().mt_rand().uniqid('', true)).'_=_';

to


$this->_boundary = '-=-swift-v4-'.time().'-'.md5(getmypid().mt_rand().uniqid('', true)).'-=-';

During prepare message boudary was encrypted to utf-8. Special char "_" in boudary was transformed to "?utf-8?Q?" by library swiftmailer to utf-8 and this generate problems.

Anybody know how configure Swiftmailer to not encrypted boundary to utf-8 ?

I would recommend you ask the same question here https://groups.google.com/forum/#!forum/swiftmailer