swiftmailer - setFrom not work

Hi guys,

Even though I set an email in with setFrom method, when I receive that the from mail is that of the smtp host account.


return \Yii::$app->mailer->compose(['html' => 'trip-request/sendRequest-html', 'text' => 'trip-request/sendRequest-text'], ['trip_request' => $this, 'trip_request_message' => $trip_request_message])

            ->setFrom('email@value.it')

            ->setTo($to_email)

            ->setSubject($subject)

            ->send();