/**
  * Send email with new account related information
  *
  * @param \Magento\Customer\Api\Data\CustomerInterface $customer
  * @param string $type
  * @param string $backUrl
  * @param string $storeId
  * @param string $sendemailStoreId
  * @return $this
  * @throws \Magento\Framework\Exception\LocalizedException
  * @deprecated
  */
 public function sendNewAccountEmail($customer, $type = self::NEW_ACCOUNT_EMAIL_REGISTERED, $backUrl = '', $storeId = '0', $sendemailStoreId = null)
 {
     if ($this->scopeConfig->isSetFlag(\Dotdigitalgroup\Email\Helper\Config::XML_PATH_CONNECTOR_DISABLE_CUSTOMER_SUCCESS, 'store', $storeId)) {
         return $this;
     } else {
         return parent::sendNewAccountEmail($customer, $type, $backUrl, $storeId, $sendemailStoreId);
     }
 }