Ini akan bekerja
Kelas transportbuilderbystore sudah tidak digunakan lagi di 2.3 dan sebentar lagi akan 2.2.
Diperbaiki di Magento 2.2.7.
Perbaiki: vendor / magento / modul-penjualan / Model / Order / Email / SenderBuilder.php
menggantikan
$this->transportBuilderByStore->setFromByStore(
$this->identityContainer->getEmailIdentity(),
$this->identityContainer->getStore()->getId()
);
dengan
$this->transportBuilder->setFrom(
$this->identityContainer->getEmailIdentity(),
$this->identityContainer->getStore()->getId()
);
vendor / magento / framework / Mail / Template / TransportBuilder.php
menggantikan
/**
* Set mail from address
*
* @param string|array $from
* @return $this
*/
public function setFrom($from)
{
$result = $this->_senderResolver->resolve($from);
$this->message->setFrom($result['email'], $result['name']);
return $this;
}
dengan
/**
* Set mail from address
*
* @param string|array $from
* @return $this
*/
public function setFrom($from, $store = null)
{
$result = $this->_senderResolver->resolve($from, $store);
$this->message->setFrom($result['email'], $result['name']);
return $this;
}
dan seperti itu kita tidak perlu TransportBuilderByStore lagi dan berfungsi seperti yang diharapkan.