OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
oxonlineserveremailbuilder.php
Go to the documentation of this file.
1 <?php
2 
12 {
13 
21  public function build($sBody)
22  {
24  $oExpirationEmail = oxNew('oxEmail');
25  $oExpirationEmail->setSubject(oxRegistry::getLang()->translateString('SUBJECT_UNABLE_TO_SEND_VIA_CURL', null, true));
26  $oExpirationEmail->setRecipient('[email protected]');
27  $oExpirationEmail->setFrom($this->_getShopInfoAddress());
28  $oExpirationEmail->setBody($sBody);
29 
30  return $oExpirationEmail;
31  }
32 
38  private function _getShopInfoAddress()
39  {
40  $oShop = oxRegistry::getConfig()->getActiveShop();
41 
42  return $oShop->oxshops__oxinfoemail->value;
43  }
44 }